Scott Baker | 1df1109 | 2015-08-18 11:03:28 -0700 | [diff] [blame] | 1 | #! /bin/bash |
2 | # script for copying stuff into running Docker container | ||||
3 | # usage: docker-cp.sh <src> <dest> | ||||
4 | # example: docker-cp.sh foo /tmp/foo | ||||
5 | |||||
6 | XOS=$( docker ps|grep "xos"|awk '{print $NF}' ) | ||||
7 | FOLDER=`docker inspect -f '{{.Id}}' $XOS` | ||||
Scott Baker | ca45ebd | 2015-10-29 10:35:12 -0700 | [diff] [blame] | 8 | #cp $1 /var/lib/docker/aufs/mnt/$FOLDER/$2 |
9 | docker cp $1 $XOS:$2 |