-
Notifications
You must be signed in to change notification settings - Fork 0
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
Error: podman run says the container name is already in use #10
Comments
Can you specify how you check state in step 2 and step 3? @ryanj |
Encountered this while using ansible to send podman rm {{ container_name }} -f via command module. |
I just faced the same issue. Is there anybody looking into this ? Best. |
@zhuguoliang, @jrevillard - This is definitely a "Won't Fix" issue for this project, but feel free to click through to the related issues for additional details (see "Issues to watch" above). From the notes that I saw in the linked issues, updating to a newer release of @zhuguoliang: Regarding steps 2 and 3: |
I ran into podman issue #2553, where "podman run says the container name is already in use but podman ps --all does not show any container with that name"
Found and cleaned up some leftover state to work around the issue:
Storage check and cleanup:
/var/lib/containers/storage/overlay-containers/containers.json
for invalid statemount
and removed usingumount
Net ns check and cleanup:
podman network ls
(slated for podman v1.5.2)/var/lib/cni/networks/podman/last_reserved_ip.0
for invalid statemount
, or by checking in/var/run/netns
. For cleanup, tryip netns list
andip netns delete netns_id
Issues to watch:
The text was updated successfully, but these errors were encountered: