The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Forums
Ask questions and gain insight from discussions

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


Thomas Malcherek 2

Recommended Posts

if you do as the documentation tells you ( Quickstart) fpr Mashery LOCAL

 

Extract the Installertar.gzfile to your desired location and navigate to the folder//tml-quickstart/on your terminal.

./quick-start.sh

 

I will create a container where Jenkins is installed and used to build and run the defined other containers like

BUILD_DOCKER_NOSQL ;BUILD_DOCKER_LOG; BUILD_DOCKER_SQL etc.

The issue is that for the"jenkins container" the tml-installer.yml file gets used to to this "- /var/run/docker.sock:/var/run/docker.sock" --> means for my understanding, the mapping between the docker inside the container and my local docker.

Now the build job of jenkins fails with

"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.39/images/json: dial unix /var/run/docker.sock: connect: permission denied"

To test that I "jumped" into the Jenkins container and go to /var/run/ to test the docker command

./docker works but not docker ps -a or docker run hello-world --> always returns an error "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.39/containers/jsonall=1: dial unix /var/run/docker.sock: connect: permission denied"

 

Yes my user "tibco" on the local vmis the group "docker"

yes on my linux no issue with "docker ps -a"

Yes I also tried this

https://dev.to/try_catch/docker-connect-permission-denied-solved-1d2g

https://www.digitalocean.com/community/questions/how-to-fix-docker-got-p...

But the docker inside the container gets used by the user "jenkins" which my local vm / docker does not know. Is that an issue

At the end its "DinD" Docker in Docker --> which user permission I have to set on my docker.sock on the local vm that the container and the user jenkins inside the container can use it

 

Doessomeone have the same problems Got it solved

 

Thomas

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...