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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

The "Detach container" option does not keep container up after task execution


Hi guys,

I'm using the docker plugin to run a "docker run" by Bamboo with the settings below.

run nginx.JPG


my log is this




The problem I'm facing is that according to the documentation the "Detach container" option should keep the container running in  background (, but the behavior is different.


You can see in the photo below that the container is created but it is destroyed at the end of the terefa. It is also possible to see that I executed the same command generated by the plugin and the container in this case is still online.

docker ps with empty result.JPG



Anyone have any idea what might be happening?


Thank you all!

1 answer

1 accepted

0 votes
Answer accepted
Rafael Pinto Sperafico
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 27, 2018

Hi @Marcio de Jesus,

Please, have a look at the announcement below, extracted from Task "Detach container" still terminates container, comments section:

Atlassian Update – 18 September 2018

Hi everyone,

Thank you for your interest in this issue. 
While designing Docker Tasks in Bamboo we made a decision that all containers started in background during execution of a job will be terminated at the end of the job. Note that we don't have "terminate container" task.
The checkbox Detach container that we exposed on the UI allows to start container in a task and then use the started container in subsequent tasks (ie. to run tests).

If you're looking for a way to start a container and keep it running after Bamboo job has been completed, you need to run the docker command from the script task.

Please share your feedback in the comments below.

Kind regards,
Bamboo Team

Kind regards,


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events