[problem help] 使用Docker时发现宿主机无法ping通容器
Tofloor
default avatar
津汐
deepin
2024-02-26 08:53
Author

Docker版本是25.0.3,是通过

curl -fsSL https://test.docker.com -o test-docker.sh sudo sh test-docker.sh

安装的。

ip addr显示这个
image.png

另外没有任何veth的信息。

容器内查ip是这样的:

image.png

宿主机尝试Ping是这样的:

image.png

另外尝试了网上的各种方法,目前没有解决。

想请教论坛里的大神该怎么办sob

Reply Favorite View the author
All Replies
TLT
deepin
2024-02-26 10:02
#1

--net参数是多少

宿主机ip addr看下信息

Reply View the author
津汐
deepin
2024-02-26 10:12
#2
TLT

--net参数是多少

宿主机ip addr看下信息

image.png

Reply View the author
raspbian
deepin
2024-02-26 10:51
#3

docker run 命令贴出来啊

等着别人上赶着问?

Reply View the author
津汐
deepin
2024-02-26 13:56
#4

直接运行的docker run -itd ubuntu:22.04 bash,没改过

Reply View the author
偷捧时间煮酒喝
deepin
2024-02-26 15:37
#5
津汐

直接运行的docker run -itd ubuntu:22.04 bash,没改过

同样的安装方式和同样的版本同样的命令,都没遇到你这个问题。

Reply View the author
偷捧时间煮酒喝
deepin
2024-02-26 15:38
#6
津汐

直接运行的docker run -itd ubuntu:22.04 bash,没改过

你的是rootless模式的docker?

Reply View the author
津汐
deepin
2024-02-26 15:41
#7
偷捧时间煮酒喝

你的是rootless模式的docker?

是的是的

要不抽空重装一下?confused

Reply View the author
偷捧时间煮酒喝
deepin
2024-02-26 15:45
#8
津汐

是的是的

要不抽空重装一下?confused

看你自己的需求。

Reply View the author
津汐
deepin
2024-02-27 02:21
#9
偷捧时间煮酒喝

看你自己的需求。

你提醒我了,我刚刚的确不使用rootless模式就正常了

yeah

Reply View the author
津汐
deepin
2024-02-27 09:44
#10

找到stackoverflow上一篇文章可能和这个有关Is it possible to use bridge network when running Docker in Rootless mode?

Reply View the author
New Thread

Popular Events

More
国际排名
WHLUG