blog_20160909_1_2430975 1行 Text
Raw
 1
docker create -it ubuntu:latest
blog_20160909_2_1449456 1行 Text
Raw
 1
docker run ubuntu /bin/bash 'hello word'
blog_20160909_3_7196314 1行 Text
Raw
 1
docker run -t -i ubuntu /bin/bash
blog_20160909_4_958305 1行 Text
Raw
 1
docker run -d ubuntu /bin/bash -c "while true;do each hello word; sleep 1 done"
blog_20160909_5_7228551 1行 Text
Raw
 1
docker stop [-t|--time[=10]]
blog_20160909_6_8515306 1行 Text
Raw
 1
docker ps -a -q
blog_20160909_7_5898367 1行 Text
Raw
 1
docker run -idt ubuntu
blog_20160909_8_2168614 1行 Text
Raw
 1
docker attach 容器Name
blog_20160909_9_215984 1行 Text
Raw
 1
docker exec -ti 容器ID /bin/bash
blog_20160909_10_5614177 1行 Text
Raw
 1
docker rm [OPTIONS] CONTAINER [CONTAINER...]
blog_20160909_11_2964219 1行 Text
Raw
 1
docker rm 容器ID
blog_20160909_12_1742720 1行 Text
Raw
 1
docker rm -f 容器ID
blog_20160909_13_4424915 1行 Text
Raw
 1
docker export CONTAINER
blog_20160909_14_7663518 1行 Text
Raw
 1
docker export 容器ID >导出后的文件名.tar
blog_20160909_15_3618120 1行 Text
Raw
 1
cat 文件名.tar | docker import - 镜像名字:TAG
blog_20160909_16_7380110 1行 Text
Raw
 1
cat test.tar | docker import - test/ubuntu:v0.0.1