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
  • 2,856
  • 4
  • 24
  • 57

1 Answers1

0

Run the following commands

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

Then run your command :-)

bereket gebredingle
  • 5,722
  • 2
  • 26
  • 40