Docker – The container name “xx” is already in use by container

When building the same app again ( e.g. you get a different source code from production, or somewhere outside of the usual GIT ), you need to remove the old one from Docker first. To do so, you first need to list all your dockers

docker ps -a

here you will see container ID of the old docker. Then just remove it.

docker rm {ID}

Write a Comment

Comment