Scott Baker | b87853b | 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` | ||||
8 | cp $1 /var/lib/docker/aufs/mnt/$FOLDER/$2 |