<pre name="code" class="ruby">docker:/root# cat centos-6-x86.tar.gz | docker import - centos-6-x86-template:zjzc docker:/root# cat centos-6-x86.tar.gz | docker import - centos-6-x86-template:zjzc
50fca37b01a1ad691fab5746724e1904cfc877ab71a4bb47e1964386cd7c1b4f
docker:/root# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
centos-6-x86-template zjzc 50fca37b01a1 34 seconds ago 574.3 MB
centos_6.5_net scan 9e2de3fc0748 18 hours ago 398.6 MB
centos_with_net czcb 92b2e7f857ae 19 hours ago 269.5 MB
januswel/centos latest 088820de4929 13 days ago 198.3 MB
linux123 jj 088820de4929 13 days ago 198.3 MB
linux123 latest 088820de4929 13 days ago 198.3 MB
linux123 xxx123 088820de4929 13 days ago 198.3 MB
centos latest bb3d629a7cbc 13 days ago 196.6 MB
blalor/centos latest f01c1b138488 21 months ago 322.4 MB 后台运行容器: docker:/root# docker run -itd centos-6-x86-template /bin/bash
Unable to find image 'centos-6-x86-template:latest' locally docker:/root# docker run -itd centos-6-x86-template:zjzc /bin/bash
ec430386e30cd589df9320888a7a4b5f0fe488afc2852ccd95dc99bcdd2065f2 进入容器: docker:/root# docker exec -it c0dfbb37f841 /bin/bash