Docker Explore the application
- Open a command-line terminal and test that your installation works by running the simple Docker image, hello-world:(image是docker容器)
- Start a Dockerized web server. Like the hello-world image above, if the image is not found locally, Docker pulls it from Docker Hub.(创建第一个容器webserver nginx)
- In a web browser, go to http://localhost/ to view the nginx homepage. Because we specified the default HTTP port, it isn’t necessary to append :80 at the end of the URL.
- View the details on the container while your web server is running (with docker container ls or docker ps):(查看容器列表)
- Stop and remove containers and images with the following commands. Use the “all” flag (--all or -a) to view stopped containers.(使用以下命令停止和删除容器和图像。)
Henry