I'm trying to run a Docker container based on a Python script that converts .pptx
files to .rtf
files using pypandoc
. The Dockerfile sets /bin/bash
as the default command, allowing interactive access to the container. However, I'm facing difficulties in accessing /bin/bash
inside the running container.
Dockerfile:
FROM ubuntu:20.04
RUN apt-get update && apt-get install -y python3.9 python3-pip pandoc bash
WORKDIR /app
COPY pptx_to_rtf.py /app/
COPY *.pptx /app/
RUN pip install python-pptx pypandoc
CMD ["/bin/bash", "-c", "python pptx_to_rtf.py & tail -f /dev/null"]
Issue:
When I attempt to access the container using docker exec -it RTF_converter /bin/bash
, I receive the error message: OCI runtime exec failed: exec failed: unable to start container process: exec: "C:/Program Files/Git/usr/bin/bash": stat C:/Program Files/Git/usr/bin/bash: no such file or directory: unknown
.
I've also tried using /bin/sh
as the default command in the Dockerfile, but the issue persists. I'm running this on a Windows machine.
Any insights or suggestions on how to properly access /bin/bash
or /bin/sh
inside the Docker container would be greatly appreciated. Thank you!