blob: bec511d73dbfb8bf923341c5221a7344d5b994a3 [file] [log] [blame]
#! /bin/bash
# script for copying stuff into running Docker container
# usage: docker-cp.sh <src> <dest>
# example: docker-cp.sh foo /tmp/foo
XOS=$( docker ps|grep "xos"|awk '{print $NF}' )
FOLDER=`docker inspect -f '{{.Id}}' $XOS`
#cp $1 /var/lib/docker/aufs/mnt/$FOLDER/$2
docker cp $1 $XOS:$2