Using docker_image to tag an image as "latest" only updates an existing
tag when used with "force_tag: yes" option. As "latest" is present in
most cases, the option is added to the example to prevent unexpected
behaviour.
(cherry picked from commit 5a6003d0ed)
This commit is contained in:
committed by
Alicia Cozine
parent
978dd9f541
commit
2a862ee82e
@ -349,6 +349,8 @@ EXAMPLES = '''
|
||||
docker_image:
|
||||
name: myimage:7.1.2
|
||||
repository: myimage:latest
|
||||
# As 'latest' usually already is present, we need to enable overwriting of existing tags:
|
||||
force_tag: yes
|
||||
source: local
|
||||
|
||||
- name: Remove image
|
||||
|
||||
Reference in New Issue
Block a user