I have created a docker image named ocp-install from the following dockerfile
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"]
I have run the command docker run -it ocp-install create
for installation.
And now i want to destroy the install using command docker exec -it <containerID> destroy
, however it gives the following error
OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"destroy\": executable file not found in $PATH": unknown