1. 进入容器,以ubuntu 为例
sudo docker run -i -t ubuntu /bin/bash
2. 运行
- apt-get update
- apt install net-tools # ifconfig
- apt install iputils-ping # ping
本文共 206 字,大约阅读时间需要 1 分钟。
sudo docker run -i -t ubuntu /bin/bash
转载于:https://www.cnblogs.com/fengerlong/p/9100532.html