Ask Your Question

Got permission denied while trying to connect to Docker Daemon

asked 2020-02-13 12:29:16 -0500

omkard gravatar image

I have installed the docker using the docker installation page. After installing the docker, I have tried the Case 1 and clone the docker repo. When I ran the command './', I am getting the following error. Please help.

Using options: ROS distro: melodic Image name: autoware/autoware Tag prefix: latest Cuda support: on Pre-release version: off UID: <1000> Launching autoware/autoware:latest-melodic-cuda docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied. See 'docker run --help'.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2020-02-14 01:10:14 -0500

sgermanserrano gravatar image

@dynamicsoorya have you added your user to the docker group as mentioned here?

Otherwise it looks like you'll need to modify the file to call sudo docker instead of just docker

edit flag offensive delete link more


@sgermanserrano Yes, that definitely worked. Thank you very much for your help. I have added my user to the docker this way:

sudo usermod -aG docker your-user

And that worked.

Thanks a lot!

omkard gravatar image omkard  ( 2020-02-18 16:49:58 -0500 )edit

answered 2020-02-19 07:30:34 -0500

omkard gravatar image

Here are the steps I have done to run Autoware without an NVIDIA GPU using a docker container:

  1. Install the docker container using the this page here.
  2. Run this command sudo usermod -aG docker your-user (Note: Do this only if you fail on Step 6).
  3. Now try running 'docker run hello-world' without sudo and should execute just fine.
  4. Now clone the Autoware Docker Gitlab Repo from Case 1 here.
  5. Now execute ./ -c off -t 1.13.0
  6. This should open a new terminal inside the docker.
  7. Then go to the ROSBAG demo.

Please correct me if I am wrong anywhere. Thank you all.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2020-02-13 12:29:16 -0500

Seen: 1,069 times

Last updated: Feb 19 '20