docker: Error ...is already in use by container

김민아·2023년 7월 27일

The container name "..." is already in use by container "..." 에러

// 이미 컨테이너가 존재한다고 나옴 
docker: Error response from daemon: Conflict. The container name "..." is already in use by container "...". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

해결방법

# 현재 사용중인 모든 컨테이너 리스트 보기 
docker ps -a 
# 하나 혹은 하나 이상의 컨테이너 중지하기 
docker stop [OPTIONS] CONTAINER [CONTAINER...]

2개의 댓글

comment-user-thumbnail
2023년 7월 27일

개발자로서 성장하는 데 큰 도움이 된 글이었습니다. 감사합니다.

1개의 답글