基础debian中没有pkill/pgrep:wheezy docker image
# docker run debian:wheezy pkill
System error: exec: "pkill": executable file not found in $PATH
Run Code Online (Sandbox Code Playgroud)
我无法弄清楚我应该安装哪些软件包来使用这些工具
# docker run debian:wheezy cat /etc/apt/sources.list
deb http://httpredir.debian.org/debian wheezy main
deb http://httpredir.debian.org/debian wheezy-updates main
deb http://security.debian.org wheezy/updates main
# docker run debian:wheezy apt-get install procps
E: Unable to locate package procps
Run Code Online (Sandbox Code Playgroud)
use*_*097 12
尝试在您的Dockerfile或容器中安装procps,然后提交它并启动新映像
Vit*_*y P 12
解决了.我忘记了
apt-get update
Run Code Online (Sandbox Code Playgroud)
之前
apt-get install procps
Run Code Online (Sandbox Code Playgroud)
在容器中
| 归档时间: |
|
| 查看次数: |
6944 次 |
| 最近记录: |