I need to access the file system of a non-running docker's container. What is the best way to accomplish that?
Thanks,
I need to access the file system of a non-running docker's container. What is the best way to accomplish that?
Thanks,
The docker export
command is what you are after. It will print on the standard output the content of a container filesystem as a tar archive.
docker export <container_name> > my_container.tar
or
docker export --output="my_container.tar" <container_name>