我建造了一个集装箱,里面有:
> cat Dockerfile
FROM fedora:latest
USER root
RUN dnf update -y && \
dnf clean all && \
dnf autoremove
> docker build -t dev .
> docker run -t -d <container_id>
> docker exec -it <container_id> /bin/bash
$ dnf install -y which
$ which find
which: no find in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)到目前为止,我使用过的每个Linux发行版都预装了find,所以我不完全确定在这里该做什么。
快速的谷歌搜索会得到关于如何使用find的结果,或者为什么在bash脚本中使用时找不到它,等等。但是不管我使用的关键词是什么,我似乎都找不到以前遇到过这种情况的人。
dnf search find没有显示结果,但可能是在另一个名称下?或者这是我自己要做的事情?
发布于 2020-02-06 03:03:35
# dnf whatprovides '*/bin/find'
findutils-1:4.6.0-24.fc31.x86_64 : The GNU versions of find utilities (find and xargs)
Repo : @System
Matched from:
Filename : /usr/bin/find
findutils-1:4.6.0-24.fc31.x86_64 : The GNU versions of find utilities (find and xargs)
Repo : fedora
Matched from:
Filename : /usr/bin/find# dnf install -y findutilshttps://stackoverflow.com/questions/60086982
复制相似问题