如何在nginx容器中使用pingnslookupipcurl 等工具?

Posted rancher-maomao

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何在nginx容器中使用pingnslookupipcurl 等工具?相关的知识,希望对你有一定的参考价值。

nginx镜像太精简了,启动一个容器进行测试时,常用的网络工具都没有,可以使用下面的命令进行安装。也可以直接起一个busybox容器进行测试。

 

apt update

 

#ping
apt install inetutils-ping 

 

#nslookup
apt install dnsutils   

 

#ifconfig 
apt install net-tools    

 

#ip

apt install iproute2    

 

#curl

apt install curl







以上是关于如何在nginx容器中使用pingnslookupipcurl 等工具?的主要内容,如果未能解决你的问题,请参考以下文章