执行命令报错:
docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -itd --name elk sebp/elk
ocker: Error response from daemon: Conflict. The container name "/elk" is already in use by container "019d48984803f85034e132c1039394c3da3e0a3553bedb78c24762f83272d220". You have to remove (or rename) that container to be able to reuse that name.
解决办法:
docker pa -a
查看之前运行的docker容器还没有推出,导致出现容器重名情况
使用下面的命令,删除容器
docker rm fb087642b497(镜像ID)