If you notice any errors, please contact us. This entry was posted in Linux and tagged CentOS, Docker, systemd. Restart Docker service: $ sudo systemctl restart rviceĤ: docker0: mtu 1500 qdisc noqueue state DOWN group default Reload systemd manager configuration: $ sudo systemctl daemon-reload Where 172.200.0.1/16 is your new Docker subnet. Subnet Address in Network in Docker Settings in Windows: Read more 2 min read. On each host, the /run/flannel/docker and /run/flannel/ subnet.env files are populated with. Docker subnet in Resources>Network in Docker Preferences in Mac: Docker settings for Mac. To change the default subnet on the docker0 interface with systemd (CentOS 7), create the following directory: $ sudo mkdir -p /etc/systemd/system//Ĭreate the configuration file /etc/systemd/system//nf with the following content: ĮxecStart=/usr/bin/dockerd -H fd:// -containerd=/run/containerd/containerd.sock -bip 172.200.0.1/16 We can associate the subnet with the MAC address on the hosts. This will become a problem if you use the same subnet for your local network. Docker uses the default 172.17.0.0/16 subnet for container networking.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |