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
Error with Docker on WSL2 + Ubuntu #3604
Comments
I've seen similar before but usually in between there is a prompt to enter a password for the sudo user so Lando has permission to start docker itself. Have you seen a prompt or opportunity to do that? |
Thanks for your answer @mikeethedude There is no prompt for password. |
@jerasokcm not sure if this will help, but I have Docker Desktop installed on Windows and have enabled WSL integration. I then start Docker Desktop on Windows before running lando within WSL. |
Thanks, @inuk66. I will give it a try. I'm not using Docker Desktop and I prefer to avoid it, but maybe it is required to make this work. |
Docker Desktop should not be needed to run Lando in WSL2. Just install the Docker Engine deb packages as described here: https://docs.docker.com/engine/install/ubuntu/. Whoever thought of the idea of Docker Desktop for Linux should be shot. :) |
I did have a lot more trouble running lando when using Docker Desktop in Windows with the WSL2 plugin. Especially with xdebug and things. Agree with the above suggestion. I'd probably reinstall lando as well. FWIW I installed Lando with the old hyperdrive script to get things going originally. I don't think it's officially the way to go still but it helped. https://github.com/lando/hyperdrive/tree/v0.6.1 |
The prompt is working for me so I can't help with that. |
Like @rvandoorn, I highly recommend using the docker-ce packages rather than Docker Desktop. One thing I did notice after updating to Lando 3.20.4 is that it doesn't recognize that I have docker compose v2.21.0 and wants to try and download it:
|
I’m trying to install a dockerized local environment with Lando + Bedrock + Sage, based on the coltoneakins’s guide I found in the Roots.io forum:
https://discourse.roots.io/u/coltoneakins
I’m using Ubuntu 22.04 inside WSL2 Windows 10 environment (Not using Docker desktop).
The problem arises in step 6, when I run:
lando start
I got this error:
WARN ==> docker is not running!
Starting docker up before we begin… please wait…
ERROR ==> Could not automatically start the Docker Daemon. Please manually start it to continue.
Then I tried to start the daemon manually:
sudo service docker start
I got OK, but the error is not gone
Docker is working fine, since I have some docker-compose projects running.
Also tried to install Lando without docker-ce dependency, but the result is the same.
Any suggestion will be greatly appreciated.
The text was updated successfully, but these errors were encountered: