blob: 280a8d94ffe419a61d22bae34e8abd21c447fbe1 [file] [log] [blame]
Scott Bakerb87853b2015-08-18 11:03:28 -07001#! /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
6XOS=$( docker ps|grep "xos"|awk '{print $NF}' )
7FOLDER=`docker inspect -f '{{.Id}}' $XOS`
8cp $1 /var/lib/docker/aufs/mnt/$FOLDER/$2