Replies: 1 comment 3 replies
-
Your understanding is incorrect. You run ddev commands in the wsl distro, in Ubuntu. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I wonder if anyone could shed some light onto an issue I have.
I have installed docker and DDEV using the WSL2 install script at https://raw.githubusercontent.com/ddev/ddev/master/scripts/install_ddev_wsl2_docker_inside.ps1
I got some errors along the way, when the script was running some of the wsl -u root -e bash commands, but I could run those within the wsl ubuntu shell without a problem, so eventually all of the commands in the script were run.
However. My understanding is that I should be able to run ddev from within windows terminal without entering the Ubuntu shell. This refuses to work. I always get the message:
level=fatal msg="\x1b[31mUnable to get Docker context: unable to run 'docker context inspect' - please make sure Docker client is in path and up-to-date: exec: \"docker\": executable file not found in %PATH%\x1b[0m"
I have created aliases in my powershell profile, so I can run a docker command from within the terminal and it is passed to wsl which works perfectly. The surprising thing is that when I run ddev from within the ubuntu shell, I get the same message:
ddev is definitively installed in windows, it's just it will not recognize the docker aliases I have, nor does it find the docker host in wsl. I was fairly sure that I would be able to do this without installing docker desktop. Am I wrong?
Beta Was this translation helpful? Give feedback.
All reactions