1.启动第一个Docker 容器 docker run hello-worldroot@devstack:/home/sammy# docker run hello-worldHello from Docker!This message shows that your installation appears to be working correctly.它的运行成功也表明前面的安装步骤都运行正确了。

镜像操作： build Build an image from a Dockerfile commit Create a new image from a container's changes images List images load Load an image from a tar archive or STDIN pull Pull an image or a repository from a registry push Push an image or a repository to a registry rmi Remove one or more images search Search the Docker Hub for images tag Tag an image into a repository save Save one or more images to a tar archive (streamed to STDOUT by default) history 显示某镜像的历史 inspect 获取镜像的详细信息容器及其中应用的生命周期操作： create Create a new container （创建一个容器） kill Kill one or more running containers inspect Return low-level information on a container, image or task pause Pause all processes within one or more containers ps List containers rm Remove one or more containers （删除一个或者多个容器） rename Rename a container restart Restart a container run Run a command in a new container （创建并启动一个容器） start Start one or more stopped containers （启动一个处于停止状态的容器） stats Display a live stream of container(s) resource usage statistics （显示容器实时的资源消耗信息） stop Stop one or more running containers （停止一个处于运行状态的容器） top Display the running processes of a container unpause Unpause all processes within one or more containers update Update configuration of one or more containers wait Block until a container stops, then print its exit code attach Attach to a running container exec Run a command in a running container port List port mappings or a specific mapping for the container logs 获取容器的日志

容器文件系统操作：

cp Copy files/folders between a container and the local filesystem diff Inspect changes on a container's filesystem export Export a container's filesystem as a tar archive import Import the contents from a tarball to create a filesystem image

Docker registry 操作：

login Log in to a Docker registry. logout Log out from a Docker registry.

--health-cmd string Command to run to check health --health-interval duration Time between running the check --health-retries int Consecutive failures needed to report unhealthy --health-timeout duration Maximum time to allow one check to run --no-healthcheck Disable any container-specified HEALTHCHECKIP 和端口：