The Docker Engine IP is the address used by containers to contact the Docker engine itself. It's a separate address from the subnet used by the containers, and can sometimes conflict with existing address schemes, just like the container subnets do. It's why we made them assignable - Docker just rotates through a range by default. The Docker Engine IP is assignable too, with this procedure. The default is 172.17.0.1, so if that doesn't conflict with existing IP ranges in your network, you don't need to worry about this. This article explains how to set the Docker Engine IP.
- You need to have Docker (though not necessarily GroundWork Monitor) installed
- You will need sudo or root level access to the Linux host in which you want to run GroundWork Monitor
- If GroundWork Monitor is running, you will need to take it down for a minute, so make sure to arrange downtime as needed
The following example is for Ubuntu Linux. Similar commands can be used to the same effect on other versions.
Create (or, if you already have one, edit) the file named daemon.json under /etc/docker/, e.g.,:
Add an entry for bip that doesn't conflict with your network address scheme. For example if the default 172.17.0.0/16 range is in use but the 172.27.0.0/16 range is not, you can add the section:
and save the file.
Stop GroundWork if it is running:
cd gw8 docker-compose downCODE
Restart the Docker daemon to pick up the change:
sudo systemctl restart dockerCODE
You can check the new address is in use like this:
ip addr docker0CODE
which should give you something like: