docker如何指定容器的ip地址啊?
为情所困
为情所困 2017-04-24 15:59:03
0
1
776

我的网卡默认有一个docker0,ip为172.17.42.1,我想容器分配的固定ip为172.17.0.155

为情所困
为情所困

reply all(1)
Ty80

Isn’t itsudo docker run -p 172.17.0.155:80 <imageID>?
I don’t understand whether you want to change the port mapped to the outside of the container to this IP or whether you want to run the things inside the container on the internal IP.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template