📜  docker run -d --hostname my-rabbit --name some-rabbit rabbitmq:3-management docker:来自守护进程的错误响应:冲突.容器名称“some-rabbit”已被容器使用 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:59.707000             🧑  作者: Mango

代码示例1
step1: remove all images which are exicuted previously 
docker ps -a
clear all containers
docker rm 9e738360f55b  # 9e738360f55b<-- is a container id
step2: try to exicte command now
docker run -d --hostname my-rabbit --name some-rabbit rabbitmq:3-management