docker error - 'name is already in use by container'

后端 未结 18 2095
暖寄归人
暖寄归人 2020-12-12 08:14

Running the docker registry with below command always throws an error:

dev:tmp me$ docker run \\
     -d --name registry-v1 \\
     -e SETTINGS_         


        
18条回答
  •  情歌与酒
    2020-12-12 08:50

    Here is how I solved this on ubuntu 18:

    1. $ sudo docker ps -a
    2. copy the container ID

    For each container do:

    1. $ sudo docker stop container_ID
    2. $ sudo docker rm container_ID

提交回复
热议问题