WhaleDeck logo

How to copy data from a Docker container

Written by Typ0genius profile picture @Typ0genius
solution

In this WhaleDeck Shorts, I answer the question of How to copy data from a Docker container. The answer is quite simple.


The answer is quite simple. The following command shows how to

copy the folder /foo/bar from the Docker container my_container to /home/backup on the local host.

docker container cp my_container:/foo/bar /home/backup
WhaleDeck
Tired of typing commands? Experience the ease of docker server management with WhaleDeck's beautiful GUI. Get things done faster and try it for free today! WhaleDeck on iPhone, iPad, and Mac