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.

  • Create a Docker Container using VirtualBox on Windows for Kubernetes
  • docker-compose: Is there any way to prevent `php-fpm` to be started until `db` has end?
  • DOCKER for Windows - Open cmd executing docker machine env
  • How to use docker to spin up postgres database
  • Docker with WebHDFS
  • mvc in container in an azure windows app service
  • 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.

  • Unable to download docker golang image: No command specified
  • Error while execing a docker image
  • Docker Container Usage
  • run ionic framework into docker does not create localy folder/files
  • Can't connect to MySQL docker container created via docker-compose
  • How to persist changes in boot2docker
  • 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.