Ask questionsfeature request: docker cat command
docker cp, it would be really handy to have a
docker cat command to print a file from a container or even test for its existence.
$ docker cat container:/var/run/status status line 1 status line 2 ... $ docker cat container:/var/run/status >/dev/null || echo "File not found"
Answer questions flickerfly
For other looking, I was able to put together the comments here into this in order to deal with an entrypoint conflict.
docker run -it --rm -a stdout --entrypoint cat <image> <filename>
It would be nice if
docker cat was aliased to
docker run -it --rm -a stdout --entrypoint cat.