Docker Community Forums

Share and learn in the Docker community.

New Install on Ubuntu 18 of Docker CE and Docker Compose - ERROR: Couldn't connect to Docker daemon - you might need to run `docker-machine start default`


(Andyd11) #1

When I try docker-compose up. I’ve done this a few times already using the instructions here…

Install: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository

Docker compose installation https://docs.docker.com/compose/install/#install-compose

So no idea why it’s not working as expected now. If i try what the error suggests, I get another error saying there is no default.

If I check verbose logs…

  File "compose/cli/command.py", line 97, in get_client
  File "site-packages/docker/api/daemon.py", line 181, in version
  File "site-packages/docker/utils/decorators.py", line 46, in inner
  File "site-packages/docker/api/client.py", line 198, in _get
  File "site-packages/requests/sessions.py", line 537, in get
  File "site-packages/requests/sessions.py", line 524, in request
  File "site-packages/requests/sessions.py", line 637, in send
  File "site-packages/requests/adapters.py", line 498, in send
requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
[2450] Failed to execute script docker-compose

Anyone know why this might be the case?


(Andyd11) #2

I can’t delete the post but figured it out…

sudo docker-compose up