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-LMLPHP

2、解决办法

2.1 docker ps

找到端口2379对应的容器id

Bind for 0.0.0.0:2379 failed: port is already allocated-LMLPHP

2.2 docker rm 9b20af7cb930

Bind for 0.0.0.0:2379 failed: port is already allocated-LMLPHP

2.3 重新执行命令

docker-compose -p docker-apisix up -d
 

Bind for 0.0.0.0:2379 failed: port is already allocated-LMLPHP

12-28 11:27