In Vmware, docker cannot connect using macvlan mode

Install docker in the Vmware virtual machine. It may be encountered that the docker internal IP cannot be connected using macvlan mode.

The solution is as follows:

1. Enable Vmware virtual switch promiscuous mode

 

2. Turn on the network card promiscuous mode in the virtual machine

ifconfig ens192 promisc

3. Restart the docker service

systemctl restart docker

4. Restart the container and that’s it!

 

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324132368&siteId=291194637