如何在GCP中安装/运行traceroute(未找到apt)



我们有google cloud composer和gke并试图运行trace route

Error : sudo: traceroute: command not found
-bash: traceroute: command not found

通过VM实例,我们启动了SSH终端,然后尝试了traceroute命令,traceroute包不可用。

有没有办法安装traceroute然后运行命令?

我们尝试使用apt/sudo apt-get但是没有使用

error : apt not found

也验证了/etc/resolv.conf,下面是内容

命名服务器100.200.300.400搜索us-north2 . a.c.projectopen.internal c.projectopen.internal google.internal

您可以使用SSH进入GKE节点,然后运行sudo toolbox,然后在工具箱容器中安装其他工具,如traceroute

您可以在这里查看更多关于工具箱的详细信息:https://cloud.google.com/container-optimized-os/docs/how-to/toolbox

最新更新