AlmaLinux 9.4 container name “/awx” is alreadyの解決方法

環境
# cat /etc/redhat-release
AlmaLinux release 9.4 (Seafoam Ocelot)

現象
Error response from daemon: Conflict.
The container name “/awx" is already in
use by container
“09d5981e684db8b422b9446e011608ea1b407c07eecb06b4f00bd7606139da40". You have to remove (or rename) that container to be able to reuse that name.

解決方法
1.コンテナを確認する
# docker ps -a

2.古いコンテナを削除する
# docker stop awx
# docker rm awx

3.dockerを再度起動する
# docker compose up -d

IT

Posted by arkgame