The docker container cannot ping the same www.baidu.com and has no ifconfig command

docker self-built bridging network,

clipboard.png

clipboard.png

clipboard.png
docker

clipboard.png

Mar.09,2021

not every image contains these instructions. For example, centos 7 defaults to

without ifconfig.

your image is from this https://github.com/jdeathe/ce.?

there are both centos7 and centos 6 in it. I wonder which one you are using?

ping does not work, related to dns setting. You can check your network settings through the ip instruction

I downloaded the latest jdeathe/centos-ssh, without ifconfig and ip instructions
if you need it, you can use

yum install iproute  -sharpip
yum install net-tools -sharpifconfig
Menu