0

I have a self hosted linux agent, where I can docker, npm, nodeJs installed. I want to execute a simple container job, where I fetch the publicly available image 'ubuntu:18.04' and just echo a line on to the terminal. Pipeline

But I end up facing this issue: Error

Starting: Initialize containers
/usr/bin/docker version --format '{{.Server.APIVersion}}'
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version": dial unix /var/run/docker.sock: connect: permission denied
'
##[error]Exit code 1 returned from process: file name '/usr/bin/docker', arguments 'version --format '{{.Server.APIVersion}}''.
Finishing: Initialize containers

I researched a bit on to this issue, and added my user to the docker group, restarted the daemon, but still no success. Any suggestions?

RCB
  • 479
  • 1
  • 9
  • Hi, does this SO: https://stackoverflow.com/questions/48957195/how-to-fix-docker-got-permission-denied-issue answer your question? Besides, if not, (1)You could check and make sure your user has the enough permission to the agent and the pipeline running. (2)Then you may also try specifying the "container" from "ubuntu18.04" to "ubuntu20.04" to see if it works. – RoyWang-MSFT Nov 30 '22 at 07:07

0 Answers0