User Tools

Site Tools


How to solve a race condition where container cannot be created with same name even if it does not exist

$ podman run -it --name containername ...
Error: error creating container storage: the container name "containername" is already in use by "e54a4c6acf9feaa2eb5680e781695182548a2a26253c570eaa9347398dc8bd12". You have to remove that container to be able to reuse that name.: that name is already in use
# But the container does not exist if shown with `podman ps -a`
# The storage of the container still exists, it's a race condition
# Clear it with:
$ podman rm --force --storage e54a4c6acf9feaa2eb5680e781695182548a2a26253c570eaa9347398dc8bd12
docu/csheet/sysadm/container/podman/race_cond_container_storage.txt · Last modified: 2020/08/16 11:09 by admin