Best way to copy files from Docker volume on remote server to local host?

I’ve got,

  1. My laptop
  2. A remote server I can SSH into which has a Docker volume inside of which are some files I’d like to copy to my laptop.

What is the best way to copy these files over? Bonus points for using things like rsync, etc.. which are fast / can resume / show me progress and not writing any temporary files.

  • How to send a curl in Docker Remote API?
  • Docker-client Java: How to keep instances running?
  • Run Jenkins master and slave with Docker
  • Docker images with visual(X) support? Or should I use VBox instead in this case?
  • Setting up Text editor like Vim,Spacemacs to work with docker containers without installing tools on the host machine
  • Error while running a container using docker
  • Note: my user on the remote server does not have permission to just scp the data straight out of the volume mount in /var/lib/docker, although I can run any containers on there.

  • Issues with AWS Route53 setup for Multi Docker Container
  • Home symbol `~` not recognized in Dockerfile
  • Dockerhub Repository Description
  • docker-compose does not launch
  • How can I find a Checksum of a Docker Image
  • docker npm install Error: getaddrinfo ENOTFOUND
  • One Solution collect form web for “Best way to copy files from Docker volume on remote server to local host?”

    I’m not sure about the best way of doing so, but if I were you I would run a container sharing the same volume (in read-only — as it seems you just want to download the files within the volume) and download theses.

    This container could be running rsync as you wish.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.