1. 进入容器,以ubuntu 为例 sudo docker run -i -t ubuntu /bin/bash 2. 运行 apt-get update apt install net-tools # ifconfig apt install iputils-ping # ping 相关文章: