Support Questions
Find answers, ask questions, and share your expertise

SANDBOX ON VMWARE could someone illustrate on how to change IP on that docker container ? currently it has 172.x.x.x subnet I want it to be 128.x.x.x subnet so I could communicate with other machines

SANDBOX ON VMWARE could someone illustrate on how to change IP on that docker container ? currently it has 172.x.x.x subnet I want it to be 128.x.x.x subnet so I could communicate with other machines

Explorer
 
2 REPLIES 2

Re: SANDBOX ON VMWARE could someone illustrate on how to change IP on that docker container ? currently it has 172.x.x.x subnet I want it to be 128.x.x.x subnet so I could communicate with other machines

Mentor

Re: SANDBOX ON VMWARE could someone illustrate on how to change IP on that docker container ? currently it has 172.x.x.x subnet I want it to be 128.x.x.x subnet so I could communicate with other machines

Explorer

Hi Geoffrey, that was a great video. However the steps are not working for me. I am not sure why.

I did the following:

# systemctl stop docker.service

# ip link set dev docker0 down

# sysctl net.ipv4.conf.all.forwarding

/etc/sysconfig/docker-network

DOCKER_NETWORK_OPTIONS=”--bip=128.222.110.244/24 --default-gateway=128.222.110.1 --dns=10.253.140.73”

# iptables –t nat –F POSTROUTING

# iptables –F DOCKER

# systemctl start docker.service

But it still shows

[root@sandbox-host sysconfig]# ip addr show docker0

3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue

state DOWN link/ether 02:42:22:ab:5a:e3 brd ff:ff:ff:ff:ff:ff inet 172.17.0.1/16 brd 172.17.255.255

scope global docker0 valid_lft forever preferred_lft forever

Is it because it could not read this line ? DOCKER_NETWORK_OPTIONS=”--bip=128.222.110.244/24 --default-gateway=128.222.110.1 --dns=10.253.140.73”

What debug logs or files to look for ?

for this version, [root@sandbox-host sysconfig]# docker --version Docker version 17.12.0-ce, build c97c6d6

Is this file /etc/sysconfig/docker-network still valid ?