commit | 1df11092f25ab41ff51bfe20dedc324ce1467e20 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Tue Aug 18 11:03:28 2015 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Tue Aug 18 11:03:28 2015 -0700 |
tree | d4ee4ad9cf7ded3c875305a1990f9d2eef735aab | |
parent | 379377233062887bbe50c3671ff6d75f9380e293 [diff] |
script for copying stuff into docker container
diff --git a/docker-cp.sh b/docker-cp.sh new file mode 100644 index 0000000..280a8d9 --- /dev/null +++ b/docker-cp.sh
@@ -0,0 +1,8 @@ +#! /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 \ No newline at end of file