Commit 865a44dd authored by Vitaly Lipatov's avatar Vitaly Lipatov

add save-cont.sh

parent 61372303
#!/bin/sh
CONT="$1"
VER="0.0.1"
IMG=
docker commit -p $CONT $CONT-img:$VER || exit
docker images | grep $CONT
docker save -o $CONT-$VER.tar $CONT-img:$VER || exit
docker rmi $CONT-img:$VER || exit
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment