Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

默认的镜像是否没有安装ping和traceroute命令? #316

Open
TurnOffNOD opened this issue Dec 25, 2023 · 4 comments
Open

默认的镜像是否没有安装ping和traceroute命令? #316

TurnOffNOD opened this issue Dec 25, 2023 · 4 comments

Comments

@TurnOffNOD
Copy link

今天遇到一些问题,想看看容器本身是否连接vpn并且能够连通目的ip,结果发现没有ping、traceroute等这些命令,是临时用apt install安装了一下顶上的。
这里产生了一个问题:默认的镜像是否没有安装ping和traceroute命令?还是说我安装的不对所以才没有的?

@Hagb
Copy link
Collaborator

Hagb commented Dec 26, 2023

为了减小体积,容器里面用的 ping 是 busybox ping。traceroute 也能用 busybox traceroute

@TurnOffNOD
Copy link
Author

为了减小体积,容器里面用的 ping 是 busybox ping。traceroute 也能用 busybox traceroute

哦,那么busybox pingbusybox traceroute使用方法是一样的么?是否是在命令行中直接使用?

@Hagb
Copy link
Collaborator

Hagb commented Dec 27, 2023

为了减小体积,容器里面用的 ping 是 busybox ping。traceroute 也能用 busybox traceroute

哦,那么busybox pingbusybox traceroute使用方法是一样的么?是否是在命令行中直接使用?

busybox pingping 使用方法类似,比如 busybox ping www.baidu.combusybox traceroute 同理。是。

@TurnOffNOD
Copy link
Author

为了减小体积,容器里面用的 ping 是 busybox ping。traceroute 也能用 busybox traceroute

哦,那么busybox pingbusybox traceroute使用方法是一样的么?是否是在命令行中直接使用?

busybox pingping 使用方法类似,比如 busybox ping www.baidu.combusybox traceroute 同理。是。

原来是要加busybox作为前缀,难怪我用ping说找不到命令。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants