root@044d63b317b8:/# ping www.baidu.com
bash: ping: command not found

解决方法:

apt-get update

apt-get install iputils-ping

一定要先执行第一条命令,否则会报错。Docker中类似的问题都可以这样方法的解决。

相关文章:

  • 2021-05-06
  • 2021-11-13
  • 2021-11-18
  • 2021-06-28
  • 2021-08-20
猜你喜欢
  • 2021-08-22
  • 2021-11-17
  • 2022-02-21
  • 2021-05-23
  • 2021-11-27
  • 2021-09-12
相关资源
相似解决方案