For IP switching
- Go to:
/etc/docker/
with cd /etc/docker/
next one of sudo nano daemon.json
sudo vim daemon.json
sudo mc daemon.json
- or use once:
sudo nano /etc/docker/daemon.json
2.
- Add to file:
{
"bip": "YOUR-IP-ADDRESS-HERE",
"default-address-pools": [
{
"base": "YOUR-IP-ADDRESS-HERE",
"size": XX
}
]
}
In places with "YOUR-IP-ADDRESS-HERE" add ip in format like 192.168.0.100/24
and part with "size" for XX in this example should have 24
sudo systemctl restart docker