查看容器内部的hosts文件 容器会自动将容器的ID加入自已的/etc/hosts文件中,并解析成容器的IP [root@ubuntu1804 ~]#docker run -it centos /bin/bash [root...