容器运行nslookup提示bash: nslookup: command not found【笔记】

在容器中提示bash: nslookup: command not found,表示容器中没有安装nslookup命令。

可以通过以下命令安装nslookup:

对于基于Debian/Ubuntu的容器,使用以下命令:

apt-get update
apt-get install -y dnsutils

对于基于CentOS/RHEL的容器,使用以下命令:

yum install -y bind-utils

容器Ubuntu示例:
在这里插入图片描述
在这里插入图片描述

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-08 21:22:04       5 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-08 21:22:04       5 阅读
  3. 在Django里面运行非项目文件

    2024-06-08 21:22:04       4 阅读
  4. Python语言-面向对象

    2024-06-08 21:22:04       7 阅读

热门阅读

  1. 2014年上海高考作文题目(ChatGPT版)

    2024-06-08 21:22:04       18 阅读
  2. golang定时器使用示例

    2024-06-08 21:22:04       22 阅读
  3. 前端常见的加密方式

    2024-06-08 21:22:04       13 阅读
  4. input输入框设置样式

    2024-06-08 21:22:04       14 阅读
  5. Ansible——fetch模块

    2024-06-08 21:22:04       17 阅读
  6. Mybatis06-动态SQL

    2024-06-08 21:22:04       13 阅读
  7. 微信小程序动画和Canvas笔记

    2024-06-08 21:22:04       20 阅读
  8. ES5/ES6 的继承除了写法以外还有什么区别?

    2024-06-08 21:22:04       15 阅读