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.

  • Using confluent-kafka python client in alpine container
  • Can I use LXD image to create Docker container and/or vice versa?
  • Dockerfile - removing a file in one RUN command, it is still present in the next RUN command
  • The easiest way to config docker container log to specific file
  • Cron job break other foreground server in docker
  • Docker private registry can't find tags when pulling
  • 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.

  • Windows Container on Windows 10 Insider Build and Docker for Windows
  • Kafka cannot resolve Zookeper's DNS name
  • Service host/port undefined, Kubernetes/Google Container Engine
  • Docker mounted volume not tracking nginx log files
  • Docker reuse port in a consul TCP health check cycle
  • Docker Swarm, Compose and PostgreSQL
  • 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.