1、执行命令
docker run -d -it --name etcd-server --restart=always -p 2379:2379 -p 2380:2380 --env ALLOW_NONE_AUTHENTICATION=yes bitnami/etcd:latest
报错
docker: Error response from daemon: Conflict. The container name "/etcd-server" is already in use by container "18237b237879ae1e026e05d32245031967af22922fa080fa94df56f4b8366d82". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
2、解决办法
2.1 查看所有的容器
docker ps -a
2.2 停止容器
docker stop 18237b237879
2.3 删除容器
docker rm 18237b237879
2.4 重新执行命令