Skip to content

Instantly share code, notes, and snippets.

@inhumantsar
Created October 31, 2014 05:57
Show Gist options
  • Save inhumantsar/0eefb529e82b62e2b833 to your computer and use it in GitHub Desktop.
Save inhumantsar/0eefb529e82b62e2b833 to your computer and use it in GitHub Desktop.
Copy a file from the host to a running Docker container
#!/bin/bash
cp $1 /var/lib/docker/aufs/mnt/`docker inspect -f '{{.Id}}' $2`/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment