docker 宿主机与容器 container 需要进行一些文件同步操作,需要获取 container 容器的 ip 地址,应该怎么获得呢?
PHP中文网2017-04-21 10:59:03
The IP of the container will change every time it is started, so knowing the IP of the container is meaningless.
For file synchronization operations, why not mount it to the host through -v?
docker exec CID ifconfig
If the container has ifconfig