Cp
19 Aug 2021
Useful Docker Patterns (On GNU/Linux)
To easily copy files from a Docker image when you dont want to start a container, you can do the following:
|
|
Sometimes it is useful to compare the output of a command between two Docker images, especially comparing different versions of a particular image:
|
|
I have both these command patterns saved as executable Bash shell scripts on my system path as cp_docker
and diff_docker_cmd
respectively.