Ask Your Question
0

Got permission denied while trying to connect to Docker Daemon

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

dynamicsoorya 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 './run.sh', 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
1

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

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 run.sh file to call sudo docker instead of just docker

edit flag offensive delete link more

Comments

@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!

dynamicsoorya gravatar imagedynamicsoorya ( 2020-02-18 16:49:58 -0600 )edit
0

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

dynamicsoorya 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 ./run.sh -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

Stats

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

Seen: 45 times

Last updated: Feb 19