Home > other >  Host machine ubuntu deployment docker, external machine can only ping host all night long, unable to
Host machine ubuntu deployment docker, external machine can only ping host all night long, unable to

Time:10-10

I now have a piece of string and 10 public IP, the requirement is, through the Linux + docker scheme, established 10 docker correspond 10 IP (or 1 IP hosting with ubuntu, nine other IP corresponding nine docker), cannot use NAT technology, use the bridge, I'm using the pipework, assigned the IP address for each docker, established the br0 bridge, hang the original card ens160 received br0, released ens160 IP at the same time, the whole operation process is also consulted many articles on the network, but now the following phenomena:

1. The host machine ubuntu deployment docker, external machine can only ping host all night long, unable to ping docker, but the host machine can ping docker.
2. Almost all the commands in the docker can't use, the update is an error, should be the problem of the source or the DNS, but tried to hosting sourcelist coverage to the docker, also of no help,

Used the primary command (other installation, for example, to create a bridge, the docker, pipework command is not written) :

$IP addr del dev ens160 192.168.3.205/24
$ifconfig br0 192.168.3.205/24
$route add default gw 192.168.3.1
$sudo docker run - it - d - the net=none - name u1 ubuntu/bin/bash
$sudo pipework br0 u1 192.168.3.208/24 @192.168.3.1
  • Related