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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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
4,553,216
Community Members
 
Community Events
184
Community Groups

How do I force a "docker pull" before my build?

I have a build that is defined with one stage, one job, and that job is configured to use docker. I'm not building a docker image with this job; I'm conducting my entire build inside a docker image.

However, it seems that the build agents have different versions of the docker image I use to build with on them, meaning that I get slightly different results in my build depending on which build agent my build lands on.

I can't add a task to my existing job to execute `docker pull` of the appropriate image, because my entire job is set to be run inside a docker container.

I can't add a new job that does the `docker pull` command because that will then run on a different build agent.

My workaround at the moment is to always push my docker images with a unique tag based on the date and then modify the bamboo job configuration each time I push the docker image, but this seems highly suboptimal. Ideally, I would never touch the bamboo configuration.

1 answer

I think at the bottom there is an optional field for:

Extra arguments for the docker run command

I have added:

--pull=always

there and it seems to work.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events