blob: bec511d73dbfb8bf923341c5221a7344d5b994a3 [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`
Scott Baker98ac2522015-10-29 10:35:12 -07008#cp $1 /var/lib/docker/aufs/mnt/$FOLDER/$2
9docker cp $1 $XOS:$2