Hello everyone,
I am very new to Linux, so please bear with me if I have some basic questions.
I have installed the latest version of Ubuntu and chose Docker through Snap during installation (according to Google information).
The path of the Docker installation is: /snap/docker/current/config. The root directory, according to Portainer, is portainer/snap/docker/common/var-lib-docker.
Docker uses the 172.16.0.0/16 network by default, which causes issues with accessibility over VPN and other networks that operate in the 172.20.x.x range, etc.
I found out that you can change the network settings in the daemon.json file. However, I cannot edit this file using either sudo vi
or sudo nano
.
According to Google, the following entry in the daemon.json should help, adjusting the network to a /24 subnet starting from 33, which would be ideal in my case:
json
{
ālog-levelā: āerrorā,
ābipā: ā172.26.33.1/24ā
}
thanks a lot!!