0

I am trying to build docker image through Jenkins installed on Ubuntu 16.04. However, getting the error stated :

"Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post".

Any suggestions are welcomed...Thanks!!!

arqam
  • 3,582
  • 5
  • 34
  • 69

1 Answers1

0

Run the following commands

  1. sudo usermod -a -G docker $USER
  2. newgrp docker

Then run your command :-)

bereket gebredingle
  • 12,064
  • 3
  • 36
  • 47