docker-compose up 失败,提示:
Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
创建一个网络 compose_network
docker network create --subnet 172.18.0.1/16 compose_network
docker-compose.yml 文件应用:
services:
xxxxxxxxxx:
container_name: xxxxxxxxxx
image: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ports:
- 10125:80
networks:
- compose_network
version: '3'
networks:
compose_network:
external: true
网友评论