You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the docker_container_module supports a boolean for the pull policy.
Where pull: true is equivalent to using --pull=always
and pull: false is equivalent to using --pull=missing
However, there is a 3rd option -> --pull=never
The suggestion is to add support for never.
ISSUE TYPE
Feature Idea
COMPONENT NAME
docker_container_module
ADDITIONAL INFORMATION
When starting containers on systems not connected to a repository (i.e it is expected that required images is already present, for example loaded from a file). it is confusing with an error that docker pull failed - when the real problem is that the required image was never loaded.
Similarly, it is confusing when a playbook (accidentally) works in an environment that is connected to a registry (say when developing/testing it) however then does not work in other environments (and then with a misleading error).
Being able to use --pull=never would ensure things never accidentally work.
SUMMARY
Currently the docker_container_module supports a boolean for the pull policy.
Where pull: true is equivalent to using --pull=always
and pull: false is equivalent to using --pull=missing
However, there is a 3rd option -> --pull=never
The suggestion is to add support for never.
ISSUE TYPE
COMPONENT NAME
docker_container_module
ADDITIONAL INFORMATION
When starting containers on systems not connected to a repository (i.e it is expected that required images is already present, for example loaded from a file). it is confusing with an error that docker pull failed - when the real problem is that the required image was never loaded.
Similarly, it is confusing when a playbook (accidentally) works in an environment that is connected to a registry (say when developing/testing it) however then does not work in other environments (and then with a misleading error).
Being able to use --pull=never would ensure things never accidentally work.
Example of expected behavior from docker docs: https://docs.docker.com/engine/reference/commandline/container_run/
The text was updated successfully, but these errors were encountered: