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
創(chuàng)建一個網(wǎng)絡(luò) compose_network
docker network create --subnet 172.18.0.1/16 compose_network
docker-compose.yml 文件應(yīng)用:
services:
xxxxxxxxxx:
container_name: xxxxxxxxxx
image: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ports:
- 10125:80
networks:
- compose_network
version: '3'
networks:
compose_network:
external: true