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

Basic operation of Docker container

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

Share

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

< myalpine-latest_with_hello.txt.tar e63a9b4f5484: Loading layer [==================================================>

] 3.584kB/3.584kBLoaded image: myalpine:latest_with_ hello.txt [root @ docker ~] # docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEmyalpine latest_with_hello.txt 3ce9b8b899ba 22 minutes ago 5.59MBalpine latest cc0abc535e36 13 days ago 5.59MBzhoumingkang/alpine v3 .10.3 cc0abc535e36 13 days ago 5.59MBalpine 3.9.4 055936d39205 8 months ago 5.53MBhello-world latest fce289e99eb9 12 months ago 1.84kB 11, Container log view [root@docker ~] # docker run hello-world:latest # run a container Hello from docking this message shows that your installation appears to be working correctly.To generate this message Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 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/[root@docker ~] # docker ps-a | grep-I hello # View the process 1c5c26a209d4 hello-world:latest "/ hello" 12 seconds ago Exited (0) 10 seconds ago angry_ Elliss [root @ docker ~] # docker logs 1c5c26a209d4 # View the log Hello from docking this running by the container Message shows that your installation appears to be working correctly.To generate this message Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 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/[root@docker ~]

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