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.

  • Setting DOCKER_HOST after Docker Toolbox/Mac install
  • Compile Zlib Statically for PHP 5.6
  • Possible to make incremental checkpoints CRIU
  • SSH Setup on Docker Container
  • How to access jupyter notebook from docker on server?
  • Ssh connect error - not a valid identifier
  • 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.

  • Creating an easily-distributable dev environment - Docker/Vagrant? [closed]
  • Kubernetes behind explicit proxy
  • crontab does not get the log in log file
  • Limit number of process in docker
  • How to deal with files of web applications in docker?
  • Emulate Bluetooth LE Adapter for Acceptance Testing
  • 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.