An unexpected error was encountered while executing a WSL command. Common causes include access righ

简介: An unexpected error was encountered while executing a WSL command. Common causes include access righ

docker desktop问题:An unexpected error was encountered while executing a WSL command. Common causes include access righ

An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking the computer or not being connected to your domain/active directory.
Please try shutting WSL down (wsl --shutdown) and/or rebooting your computer. If not sufficient, WSL may need to be reinstalled fully. As a last resort, try to uninstall/reinstall Docker Desktop. If the issue persists please collect diagnostics and submit an issue (https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal).

解决

  1. powershell的管理员权限执行

wsl安装正确

wsl -l # list wsl installed
wsl --update
# 更新网络设置
netsh winsock reset

2.重启电脑

相关文章
|
2月前
|
Shell 网络安全 开发工具
fatal: unable to access 'https://github.com/wolfcw/libfaketime.git/': Encountered end of file
fatal: unable to access 'https://github.com/wolfcw/libfaketime.git/': Encountered end of file
|
Java 开发工具 Android开发
Android Studio 解决:error adding symbols: File in wrong format clang++.exe: error: linker command...
错误日志: Error:FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:externalNativeBuildDebug'.
6565 0
|
6月前
|
NoSQL C语言
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
vscode出现 ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.
1433 0
|
开发者 Python
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied
412 0
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied
|
Java
Error: A JNI error has occurred, please check your installation and try again
Error: A JNI error has occurred, please check your installation and try again
197 0
解决办法:configure: error: You requested SRTP (requires libsrtp) but not found...die
解决办法:configure: error: You requested SRTP (requires libsrtp) but not found...die
140 0
configure: line syntax error near unexpected token `win32-dll'
configure: line syntax error near unexpected token `win32-dll'
351 0
configure: error: You requested LIBYUV but not found...die
configure: error: You requested LIBYUV but not found...die
93 0
|
Perl
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1
702 0
|
Android开发
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]
431 0
解析Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]