Following is my dockerfile:
FROM python:3.6.5-windowsservercore
COPY . /app
WORKDIR /app
RUN pip download -r requirements.txt -d packages
To get list of files in the image, I have tried both the following options, but there is error:
encountered an error during CreateProcess: failure in a Windows system call:
The system cannot find the file specified. (0x2) extra info:
{"CommandLine":"dir","WorkingDirectory":"C:\\app"......
- Run
docker run -it <container_id> dir
- Modify the dockerfile and add CMD at end of dockerfile -
CMD ["dir"]
, then rundocker run <container_id> dir
How to list all directories and files inside docker?