I can upload files to the /web directory of a running container using docker cp. After I have done this I want to manage those files, e.g. delete files beneath /web, or move them to different directories. Usually, I would do this by run the shell command via docker exec, but that doesn't appear to be possible.
docker exec pdf_structure-web-server-1 /bin/sh
OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown
I tried various paths to a shell program, but none of them worked.
Is there a shell program I can run with docker exec in this image? If not, how do I manage files in the container once I have uploaded them?
I can upload files to the
/webdirectory of a running container usingdocker cp. After I have done this I want to manage those files, e.g. delete files beneath/web, or move them to different directories. Usually, I would do this by run the shell command viadocker exec, but that doesn't appear to be possible.I tried various paths to a shell program, but none of them worked.
Is there a shell program I can run with
docker execin this image? If not, how do I manage files in the container once I have uploaded them?