主要来自第一本docker书(修订版):
docker run -i -t ubuntu /bin/bash
docker ps (-l)
docker run --name bob_the_container -i -t ubuntu /bin/bash
docker start bob_the_container
[docker create]
docker attach
docker run --name daemon_dave -d ubuntu /bin/sh -c "while true; do echo hello world; sleep 1;done"
docker inspect
docker rm
docker images
docker pull fedora:20
docker search selenium
docker commit (deprecated)
docker build -t="jamtur01/static_web:v1" [-f path/to/file] [--no-cache]
.dockerignore类似于.gitignore
docker history 22d47c8cb6e5
docker port 6751b94bb5c0 80
-P参数公开Dockerfile中EXPOSE参数指定的端口
Dockerfile中CMD指令指定容齐启动时要运行的命令
ENTRY命令,WORKDIR命令,ENV命令,USER命令,VOLUMNE命令,ADD命令,COPY指令,LABEL指令,STOPSIGNAL指令,ARG指令,ONBUILD指令