Docker Explore the application

 
  1. Open a command-line terminal and test that your installation works by running the simple Docker image, hello-world:(image是docker容器)
  2. 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)
  3. 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.
  4. View the details on the container while your web server is running (with docker container ls or docker ps):(查看容器列表)
  5. Stop and remove containers and images with the following commands. Use the “all” flag (--all or -a) to view stopped containers.(使用以下命令停止和删除容器和图像。)
 
posted @ 2019-06-10 09:35  HenryZ.Tang  阅读(231)  评论(0编辑  收藏  举报