docker: Error response from daemon: Conflict. The container name /XXX is already in use by container

October 30, 2020

Assuming you start a docker with name

docker run -ti --name NAME DOCKER_IMAGE

You can check if the docker is still active

docker ps

You can try to start the docker again if it is not active

docker start NAME

If docker is active, you can connect to it via

docker exec -ti NAME bash

You can delete the docker name if it is no longer active

docker rm NAME

NOTE: Start Docker With Multiple Tty

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.