-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose up don't respect pull policy #177
Comments
2 tasks
For CI environment, the best approach to force all base images pull again and force build image with native docker, requires the following sequence of commands:
and also set
in service configuration. |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version 2 releases are only running
docker-compose up
that only pull images on the first deployment. If an image changes it ignores the pull policy. To solve this issue is required thatdocker-compose pull
runs beforedocker-compose up
.An example of this solution to solve this issue:
https://github.com/stephanlindauer/docker-compose-updater/blob/master/run.sh
Beside this, is also important in docker-compose.yml file to define the pull_policy property:
A reference of this detail would be also important in the documentation. Possible values are defined in docker-compose spec.
The text was updated successfully, but these errors were encountered: