新创建了centos容器,使用ifconfig,报无此命令。

Docker学习笔记_初装的Centos无ifconfig

解决办法,使用yum进行安装ifconfig

1.yum search ifconfig

Docker学习笔记_初装的Centos无ifconfig

2.yum install net-tools.x86_64

Docker学习笔记_初装的Centos无ifconfig

依提示信息,输入y,向下执行

3.安装完毕测试

Docker学习笔记_初装的Centos无ifconfig

说明已可使用

 

相关文章:

  • 2021-12-16
  • 2022-12-23
  • 2021-06-06
  • 2021-05-23
  • 2021-04-29
  • 2021-08-27
  • 2021-12-20
猜你喜欢
  • 2021-12-28
  • 2021-10-07
  • 2021-07-28
  • 2021-10-17
  • 2021-11-11
  • 2022-01-13
相关资源
相似解决方案