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

What is the time to live for a docker container?

Dan Beck October 11, 2016

I have an issue where I'd like to queue up different builds for a specific branch.  I don't want builds to run at the same time; one build could take about 15 mins to complete and there may be a number of commits that occur for a specific branch during that time. ... We're seeing if we can create a script that will check for the presence of an item within our application, and run the maven command once the item is no longer present.  However, we're not sure if this method will work due to the time to live for a docker container.  How long will a docker container stay up and running?

2 answers

0 votes
xtjhin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 26, 2016

Hi Daniel,

Sounds like you would like a way to limit concurrency like described in https://bitbucket.org/site/master/issues/12821/sequential-pipelines-disable

 

0 votes
Tom Bradshaw
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 12, 2016

Hi Daniel,

The docker container runs for 2 hours and is then stopped and the build will fail. We are looking into these sorts of parallel build restrictions. Please add an issue to https://bitbucket.org/site/master/ detailing what you want from this feature. That way when we come to implementing this we can take your feedback into account.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events