-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker command not found on remote host #6026
Comments
Just to be clear, you still see this with v0.209.3 that was released today, correct? If so, there may be an issue with remote docker host support given the new Remote - SSH + Containers support we added. (You can now use Remote - SSH to go to a VM, then "Reopen folder in container" from there.) Moving to correct repository. |
@jbencook Can you also post the complete logs you see (if you're getting more than this one error)? |
Yes, I just confirmed it's happening with everything v0.207.0 and newer including v0.209.3 and v0.209.4. Here are all the logs I can copy from my terminal when it happens:
The current workaround for me is to install v0.206.0, which makes everything work as expected. |
Ok yep that worked:
Edited to paste the whole log following your suggestion @chrmarti |
Should be fixed in Remote-Containers 0.209.5. Let me know if you still see this issue there. Thanks. FYI: Instead of having your devcontainer.json locally, you can now also have it on your SSH server. To try that use the Remote-SSH extension to connect to the SSH server, open your workspace folder on the SSH server and then use the |
I'll give that a try -- thank you! |
@chrmarti The issue still happens for me on version 0.209.5. But only when using custom docker command with settings My trace logs[78 ms] Remote-Containers 0.209.5 in VS Code 1.63.0 (7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e). [78 ms] Start: Run: wsl -d alpine -e wslpath -u \\wsl$\alpine\home\meskill\Projects\test\rust [162 ms] Stop (84 ms): Run: wsl -d alpine -e wslpath -u \\wsl$\alpine\home\meskill\Projects\test\rust [332 ms] Start: Resolving Remote [336 ms] Start: Run: wsl -d alpine -e wslpath -u \\wsl$\alpine\home\meskill\Projects\test\rust [418 ms] Stop (82 ms): Run: wsl -d alpine -e wslpath -u \\wsl$\alpine\home\meskill\Projects\test\rust [419 ms] Start: Run: wsl -d alpine -e /bin/sh -c cd '/home/meskill/Projects/test/rust' && /bin/sh [423 ms] Start: Run in host: id -un [460 ms] meskill [461 ms] [461 ms] Stop (38 ms): Run in host: id -un [461 ms] Start: Run in host: cat /etc/passwd [463 ms] Stop (2 ms): Run in host: cat /etc/passwd [463 ms] Start: Run in host: echo ~ [464 ms] /home/meskill [464 ms] [464 ms] Stop (1 ms): Run in host: echo ~ [465 ms] Start: Run in host: test -x '/home/meskill/.vscode-remote-containers/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' [465 ms] [466 ms] [466 ms] Stop (1 ms): Run in host: test -x '/home/meskill/.vscode-remote-containers/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' [466 ms] Start: Run in host: test -f '/home/meskill/.vscode-remote-containers/dist/vscode-remote-containers-server-0.209.5.js' [467 ms] [467 ms] [467 ms] Stop (1 ms): Run in host: test -f '/home/meskill/.vscode-remote-containers/dist/vscode-remote-containers-server-0.209.5.js' [469 ms] userEnvProbe: loginInteractiveShell (default) [469 ms] userEnvProbe shell: /usr/bin/fish [470 ms] Start: Run in Host: /usr/bin/fish -lic '/home/meskill/.vscode-remote-containers/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' -p '"1e040e07dbb41a0925b1f4f86c02604b" + JSON.stringify(process.env) + "1e040e07dbb41a0925b1f4f86c02604b"' [587 ms] Stop (117 ms): Run in Host: /usr/bin/fish -lic '/home/meskill/.vscode-remote-containers/bin/7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e/node' -p '"1e040e07dbb41a0925b1f4f86c02604b" + JSON.stringify(process.env) + "1e040e07dbb41a0925b1f4f86c02604b"' [587 ms] 1e040e07dbb41a0925b1f4f86c02604b{"PWD":"/home/meskill/Projects/test/rust","SHLVL":"3","WSLENV":"","WSL_DISTRO_NAME":"alpine","SHELL":"/bin/sh","HOME":"/home/meskill","TERM":"xterm-256color","WSL_HOST_IP":"192.168.144.1","WSL_IP":"192.168.157.237","SELF_IP":"192.168.157.237","NAME":"Tower","REMOTE_CONTAINERS_IPC":"","HOSTTYPE":"x86_64","WSL_INTEROP":"/run/WSL/11638_interop","LOGNAME":"meskill","USER":"meskill","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Users/meski/AppData/Local/Vivaldi/Application:/mnt/c/windows/system32:/mnt/c/windows:/mnt/c/windows/system32/wbem:/mnt/c/windows/system32/windowspowershell/v1.0/:/mnt/c/windows/system32/openssh/:/mnt/c/programdata/chocolatey/bin:/mnt/c/program files/microsoft vs code/bin:/mnt/c/program files/nvidia corporation/nvidia ngx:/mnt/c/program files/microsoft vs code/bin:/mnt/c/windows/system32:/mnt/c/windows:/mnt/c/windows/system32/wbem:/mnt/c/windows/system32/windowspowershell/v1.0/:/mnt/c/windows/system32/openssh/:/mnt/c/program files/dotnet/:/mnt/c/program files/microsoft vs code/bin:/mnt/c/program files/nvidia corporation/nvidia nvdlisr:/mnt/c/program files/microsoft vs code/bin:/mnt/c/program files (x86)/git:/mnt/c/program files (x86)/windows kits/10/windows performance toolkit/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Users/meski/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/meski/AppData/Roaming/Code/User/globalStorage/ms-vscode-remote.remote-containers/cli-bin","HOST_IP":"192.168.144.1","REMOTE_CONTAINERS_SOCKETS":"[]","LANG":"en_US.UTF-8","OLDPWD":"/mnt/c/Program Files/Microsoft VS Code"}1e040e07dbb41a0925b1f4f86c02604b [587 ms] [588 ms] userEnvProbe parsed: { "PWD": "/home/meskill/Projects/test/rust", "SHLVL": "3", "WSLENV": "", "WSL_DISTRO_NAME": "alpine", "SHELL": "/bin/sh", "HOME": "/home/meskill", "TERM": "xterm-256color", "WSL_HOST_IP": "192.168.144.1", "WSL_IP": "192.168.157.237", "SELF_IP": "192.168.157.237", "NAME": "Tower", "REMOTE_CONTAINERS_IPC": "", "HOSTTYPE": "x86_64", "WSL_INTEROP": "/run/WSL/11638_interop", "LOGNAME": "meskill", "USER": "meskill", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Users/meski/AppData/Local/Vivaldi/Application:/mnt/c/windows/system32:/mnt/c/windows:/mnt/c/windows/system32/wbem:/mnt/c/windows/system32/windowspowershell/v1.0/:/mnt/c/windows/system32/openssh/:/mnt/c/programdata/chocolatey/bin:/mnt/c/program files/microsoft vs code/bin:/mnt/c/program files/nvidia corporation/nvidia ngx:/mnt/c/program files/microsoft vs code/bin:/mnt/c/windows/system32:/mnt/c/windows:/mnt/c/windows/system32/wbem:/mnt/c/windows/system32/windowspowershell/v1.0/:/mnt/c/windows/system32/openssh/:/mnt/c/program files/dotnet/:/mnt/c/program files/microsoft vs code/bin:/mnt/c/program files/nvidia corporation/nvidia nvdlisr:/mnt/c/program files/microsoft vs code/bin:/mnt/c/program files (x86)/git:/mnt/c/program files (x86)/windows kits/10/windows performance toolkit/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Users/meski/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/meski/AppData/Roaming/Code/User/globalStorage/ms-vscode-remote.remote-containers/cli-bin", "HOST_IP": "192.168.144.1", "REMOTE_CONTAINERS_SOCKETS": "[]", "LANG": "en_US.UTF-8", "OLDPWD": "/mnt/c/Program Files/Microsoft VS Code" } [588 ms] userEnvProbe PATHs: Probe: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Users/meski/AppData/Local/Vivaldi/Application:/mnt/c/windows/system32:/mnt/c/windows:/mnt/c/windows/system32/wbem:/mnt/c/windows/system32/windowspowershell/v1.0/:/mnt/c/windows/system32/openssh/:/mnt/c/programdata/chocolatey/bin:/mnt/c/program files/microsoft vs code/bin:/mnt/c/program files/nvidia corporation/nvidia ngx:/mnt/c/program files/microsoft vs code/bin:/mnt/c/windows/system32:/mnt/c/windows:/mnt/c/windows/system32/wbem:/mnt/c/windows/system32/windowspowershell/v1.0/:/mnt/c/windows/system32/openssh/:/mnt/c/program files/dotnet/:/mnt/c/program files/microsoft vs code/bin:/mnt/c/program files/nvidia corporation/nvidia nvdlisr:/mnt/c/program files/microsoft vs code/bin:/mnt/c/program files (x86)/git:/mnt/c/program files (x86)/windows kits/10/windows performance toolkit/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/Microsoft VS Code/bin:/mnt/c/Users/meski/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/meski/AppData/Roaming/Code/User/globalStorage/ms-vscode-remote.remote-containers/cli-bin' Container: None [589 ms] Setting up container for folder or workspace: /home/meskill/Projects/test/rust [590 ms] Start: Check Docker is running [591 ms] Start: Run in Host: fish -c 'docker $argv' version --format {{.Server.APIVersion}} [628 ms] Host server: (node:11645) UnhandledPromiseRejectionWarning: Error: spawn fish -c 'docker $argv' ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19) at onErrorNT (internal/child_process.js:465:16) at processTicksAndRejections (internal/process/task_queues.js:80:21) (Use `node --trace-warnings ...` to show where the warning was created) (node:11645) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) [628 ms] Host server: (node:11645) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. [628 ms] Stop (37 ms): Run in Host: fish -c 'docker $argv' version --format {{.Server.APIVersion}} [630 ms] spawn fish -c 'docker $argv' ENOENT [630 ms] Stop (40 ms): Check Docker is running [633 ms] Docker returned an error code ENOENT, message: spawn fish -c 'docker $argv' ENOENT [634 ms] Host server: (node:11645) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) |
I'm still getting docker error on 0.209.5 and I don't have remote.containers.dockerPath set anywhere
|
@bakaleks , I had the same behavior. Re-opening the folder locally and doing "rebuild and reopen in container" worked for me. |
I forgot: The fix is such that you need to do a |
Starting in version v0.207.0, I get
The 'docker' command was not found. Make sure Docker is installed.
every time I runRemote-Containers: Rebuild and Reopen in Container
when my Docker host is a remote machine. Installing v0.206.0 or earlier solves it.devcontainer.json
. I also havedocker.host
set to a remote machine:Steps to Reproduce:
Remote-Containers: Rebuild and Reopen in Container
with a remote docker hostEverything works fine when my local machine is the Docker host. And I confirmed that I get the problem when the remote host is both an Ubuntu workstation and an Amazon Linux instance.
The text was updated successfully, but these errors were encountered: