Bind for 0.0.0.0:2379 failed: port is already allocated

1、执行命令docker-compose -p docker-apisix up -d
报错

Error response from daemon: driver failed programming external connectivity on endpoint docker-apisix-etcd-1 (2a92a0cefff9194fcd1dad4bdeabf4201d9047ec2633eda455c6e46528668af4): Bind for 0.0.0.0:2379 failed: port is already allocated
Bind for 0.0.0.0:2379 failed: port is already allocated_第1张图片

2、解决办法

2.1 docker ps

找到端口2379对应的容器id

Bind for 0.0.0.0:2379 failed: port is already allocated_第2张图片

2.2 docker rm 9b20af7cb930

2.3 重新执行命令

docker-compose -p docker-apisix up -d
 

你可能感兴趣的:(10,运维部署,云原生)