-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
[Documentation: podman_container
] The behavior of the state
key is inconsistent with docker_container
and not well documented
#257
Comments
podman_container
] The behavior of the state
key is inconsistent with docker_container
and not well documentedpodman_container
] The behavior of the state
key is inconsistent with docker_container
and not well documented
OK, let's put things in order: Docker choices:
Podman choices:
So what's required if I understand correctly, is changing 'present -> started' in podman to 'present -> created'. |
For being more compliant with docker module. See containers#257
@sshnaidm Yes, I think that makes sense. I think it is also necessary to change the documentation to state that For good measure, I think the docs should clarify that Thanks! |
Yeah, makes sense. |
Use 'network' instead of 'net' alias. Use state 'started' to ensure container is started[1] [1] containers/ansible-podman-collections#257 Change-Id: I4b949d44b7cb84500ab51575f60cac084479e820
* Update tripleo-ansible from branch 'master' to 41bc0cc4bc5ab177c792bbdcb4efd51d54b941e7 - Merge "Correct values for podman container" - Correct values for podman container Use 'network' instead of 'net' alias. Use state 'started' to ensure container is started[1] [1] containers/ansible-podman-collections#257 Change-Id: I4b949d44b7cb84500ab51575f60cac084479e820
Use 'network' instead of 'net' alias. Use state 'started' to ensure container is started[1] [1] containers/ansible-podman-collections#257 Change-Id: I4b949d44b7cb84500ab51575f60cac084479e820 (cherry picked from commit 990cca0)
Use 'network' instead of 'net' alias. Use state 'started' to ensure container is started[1] [1] containers/ansible-podman-collections#257 Change-Id: I4b949d44b7cb84500ab51575f60cac084479e820 (cherry picked from commit 990cca0)
Use 'network' instead of 'net' alias. Use state 'started' to ensure container is started[1] [1] containers/ansible-podman-collections#257 Change-Id: I4b949d44b7cb84500ab51575f60cac084479e820 (cherry picked from commit 990cca0)
Use 'network' instead of 'net' alias. Use state 'started' to ensure container is started[1] [1] containers/ansible-podman-collections#257 Change-Id: I4b949d44b7cb84500ab51575f60cac084479e820 (cherry picked from commit 990cca0)
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See containers#257
For being more compliant with docker module. See #257
This issue is regarding the
container.podman.podman_container
module. I discarded the regular bug template because it is not applicable to this issue.It appears that
state: present
andstate: started
do the same thing. In general, the documentation for thestate
key is unclear.Additionally, the
state
key for thecommunity.docker.docker_container
module has different options and behavior thanpodman_container
. For example, thedocker_container
module lacks thestate: created
option. Instead, ondocker_container
,state: stopped
stops existing containers and also creates new containers without starting them (the role ofstate: created
onpodman_container
).state: present
withdocker_container
maintains the current state of existing containers and recreates the container if necessary, but withpodman_container
, it always starts a container, which is the same thingstate: started
does.Related: #45
The text was updated successfully, but these errors were encountered: