docker default不会使用docker-compose更改吗?

时间:2019-03-21 23:03:59

标签: docker docker-compose

docker默认子网不会更改

networks:
  default:
    ipam:
      driver: default
      config:
        - subnet: 192.168.0.0/24

我的一个实例上ifconfig的输出

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.19.0.5  netmask 255.255.0.0  broadcast 172.19.255.255
        ether 02:42:ac:13:00:05  txqueuelen 0  (Ethernet)
        RX packets 11  bytes 926 (926.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

0 个答案:

没有答案