Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Docker runs the first program

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Run the first hello-world program [root@docker ~] # docker run hello-world# cannot find hello-world image locally Unable to find image 'hello-world:latest' locally# pull hello-world image latest: Pulling from library/hello-world1b930d010525: Pull complete Digest: sha256:4df8ca8a7e309c256d60d7971ea14c27672fc0d10c5f303856d7bc48f8cc17ff# download a new image (hello-world) Status: Downloaded newer image for hello-world:latest# image container run content (see the following Hello from docking this message shows that your installation appears to be working correctly. # in order to generate this information, the container does the following steps: the client of To generate this message, Docker took the following steps: # docker connects to the docker server of the server to start the daemon in the background, typical CS 1. The Docker client contacted the Docker daemon. # docer server downloads a hello-world image from docker hub remote repository 2.The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) # docker server launches a new container through this image, executes the corresponding command or program, and outputs a piece of information or content. 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. # the docker server outputs the data stream to the docker client and sends it to your terminal. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.To try something more ambitious, you can run an Ubuntu container with: $docker run-it ubuntu bashShare images, automate workflows, and more with a free Docker ID: https://hub.docker.com/For more examples and ideas, visit: https://docs.docker.com/get-started/

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report