1.现象:
在容器内执行route命令会报错 bash: route: command not found
2.原因
容器内没有安装route命令
3.解决办法
(1)bash: ip: command not found
apt-get update && apt-get install -y iproute2
(2)bash: yum: command not found
apt-get update && apt-get install yum
(3)bash: ping: command not found
apt-get update && apt install iputils-ping
(4)bash: ifconfig: command not found
apt-get update && apt install net-tools
(5)bash: vi: command not found
apt-get update && apt-get install vim
(6)bash: route: command not found
apt-get update && apt-get install -y iproute2 && apt-get update && apt install net-tools
(7) bash: netstat: command not found
apt-get update && apt install net-tools
(8)bash: ps: command not found
apt-get update && apt-get install procps
(9)bash: top: command not found
apt-get update && apt-get install procps
标签:get,xxx,apt,command,&&,found,docker,bash From: https://www.cnblogs.com/zxqblogrecord/p/17239117.html