我从以下 dockerfile 创建了一个名为 ocp-install 的 docker 映像
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
ARG INSTALL_DIR=/root/install-dir
ENV PATH $PATH:$INSTALL_DIR
WORKDIR $INSTALL_DIR
RUN microdnf update && \
microdnf install -y yum findutils && \
mkdir -p $INSTALL_DIR
COPY ocp-install $INSTALL_DIR
ENTRYPOINT ["/bin/bash", "/usr/bin/ocp-install"]
我已经运行了docker run -it ocp-install create
安装命令。
现在我想使用命令破坏安装docker exec -it <containerID> destroy
,但是它给出了以下错误
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"destroy\": executable file not found in $PATH": unknown