转载地址: http://blog.csdn.net/wxqee/article/details/52081866
Get a base Image
$ docker pull centos
Run a base Container
$ docker run -it centos /bin/bash
See Container status
$ docker ps -a
Commit Container as Image
$ docker commit -m "echo container" -a "wang xiaoqiang" c71580983e83 echo:v1
Save Image
$ docker save echo:v1 >echo-v1.tar
Load Image
$ docker load < echo-v1.tar