Removing files from a docker container

Can I pull files from a docker container to a local host?

I want to take certain directories from the docker containers I worked on and move them to the local host daily.

Is this possible and how can this be done?

+3
source share
2 answers

Yes, you can just use the command docker cp.

An example from the official CLI post:

sudo docker cp <container-id>:/etc/hosts .

+4
source

, ? , , @abronan, -, , , ,

+1

All Articles