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

后端 未结 18 2111
暖寄归人
暖寄归人 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:56

    I was running into this issue that when I run docker rm (which usually works) I would get:

    Error: No such image

    The easiest solution to this is removing all stopped containers by running:

    docker container prune
    

提交回复
热议问题