Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Cannot connect to the Docker daemon

Isa_Baboo March 23, 2018

Hi

I am running Bamboo 6.3.2 on RHEL7. I have a Deployment task to build an docker images. However the deployment is failing with the error Cannot connect to the Docker daemon. Is the docker daemon running on this host?

I have change the docker socket files groups to dockerroot and added the bamboo user to dockeroot

srw-rw----. 1 root dockerroot 0 Mar 23 14:38 /var/run/docker.sock

 id
uid=168(bamboo) gid=166(bamboo) groups=166(bamboo),164(dockerroot)

 

I can also execute the build command successfully from command line as the bamboo user.

 

 

1 answer

0 votes
MB
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2018

Hi Isa,

Your current session may not pick up these changes. After the installation, you should restart bamboo so the docker options can be picked up by Bamboo Server. Ensure the bamboo user is added to the docker group. 

Ensure the docker capabilities are also defined in the server too, this could help. 

Cheers,
Max - Premier Support Engineer

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events