commit | b87853b183315445d06128d90cdc220dba5778c4 | [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 | 2edd4f302ac6eadff32a4b49853539ac2f76b132 [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