问题 测试两个docker容器之间是否能ping通,提示bash: ping: command not found 解决 bash: ping: command not found的主要原因是,当前环境下载Centos基础镜像只包含简单的操作系统,相当于裸机状态,要想用别的命令需要手动安装。 #执行以下命令 apt-get update apt install iputils-ping apt install net-tools 重新测试 成功!