Selasa, 14 Januari 2020

DOCKER-setting network docker0 biar bs di akses

seting pada:
root@ubuntu:/etc/docker# vi daemon.json

{
  "bip": "172.17.9.1/24",
  "dns": ["172.16.13.20"],
  "insecure-registries": ["172.16.7.99:5000"]
}




atau sb

default Docker subnet by following these steps:
  1. First, you need to delete the containers inside the VM (vserver and postgres). Use the following two commands: 
    cd /opt/visionect
    sudo docker-compose stop
  2. Next, change the subnet IP inside "/etc/docker/daemon.json", by using this command:
    sudo vim /etc/docker/daemon.json
  3. Type in the Netmask IP. With the following structure. Please keep in mind that the IP used here is an example:
    {
     "default-address-pools":
     [
     {"base":"10.10.0.0/16","size":24}
     ]
    }
  4. Restart the Docker Daemon by using this command:
    sudo service docker restart

Tidak ada komentar:

Posting Komentar