In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces how docker starts the container through the image. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
The image of Docker is called image and the container is called container. For Docker, image is static, similar to operating system snapshots, while container is dynamic, a running instance of image.
For example, if there is an image named ubuntu, now let's start the container of the image and enter the bash command line of the container:
Docker run-t-I ubuntu / bin/bash
Docker run: start containerubuntu: the image-t you want to start: enter the terminal-I: get an interactive connection by getting the input of container / bin/bash: start a bash shell in container
This brings you into the inside of container:
Root@af8bae53bdd3:/#
If you have a running container, you can run it on the same external operating system as container:
Docker ps
View this container. If you want to see all the container, including running, and not running or sleeping images, run:
Docker ps-a
If you want to quit: Ctrl-D or: root@af8bae53bdd3:/# exit
Start the container (container) of an image (mirror) in docker
To open the container again, run:
Docker start goofy_almeida
This is how to share docker through the image startup container. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.