Skip to content
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

Problem with docker-compose under WSL2/Ubuntu20.4 #83

Open
mirekh68 opened this issue Sep 2, 2021 · 3 comments
Open

Problem with docker-compose under WSL2/Ubuntu20.4 #83

mirekh68 opened this issue Sep 2, 2021 · 3 comments

Comments

@mirekh68
Copy link

mirekh68 commented Sep 2, 2021

Just at the beginning of the course, (environ setup : lesson https://academy.jfrog.com/path/conan/conan-essentials/590849 )after issuing the command:

~/projects/training/docker_environment$ docker-compose up -d

I've got an error message:

ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

I am using Ubuntu 20.04 on WSL 2

@SubrataBauri
Copy link

@mirekh68 Were you able to solve this ?
I am getting the same error.

@KagonKhan
Copy link

I had the same issues, and did a bunch of things that solved it. Not sure which one worked exactly and you probably can solve it another way. I assume that docker service is just turned off sudo service --status-all, maybe sudo service docker start would suffice, but I took the long road.

What I did:
0. sudo systemctl status didnt work on ubuntu

  1. Install Windows Subsystem For Linux from Microsoft Store
  2. Launch Ubuntu and sudo -e /etc/wsl.conf
  3. Add
[boot]
systemd=true
  1. Save.
  2. In powershell wsl --shutdown
  3. Start ubuntu
  4. sudo systemctl status should work now
  5. sudo systemctl start docker

@mrezabayat
Copy link

If you are on mac, use this command:
brew install --cask docker
Then run GUI of docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants