docker IPv4 address pool 不足问题

2020-05-08  本文已影响0人  六弦极品

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
上一篇下一篇

猜你喜欢

热点阅读