In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the basic operations of Docker image". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian and go deep into it slowly to study and learn "what are the basic operations of Docker image" together!
After installing the Docker engine, you can perform basic operations on the image.
We pull CentOS images from the repository of the official registration server (https://hub.docker.com). As mentioned earlier, each repository will have multiple images, marked with tags. If no tag is added, the latest image will be used by default:
(1) Start a container with mirroring and modify it ==> Submit an updated copy with commit
At this point exit the container with exit and look at the program (container) running in docker:
Here, the container is converted into an image, that is, the commit operation is executed, and after completion, you can use docker images to view:
where-m specifies description information;-a specifies user information; 72f1a8a0e394 represents the container id;xianhu/centos:git specifies the user name, repository name, and tag information of the target image. Note the username xianhu here, which will be used later.
At this point, we have our new image xianhu/centos:git in Docker engine. The difference between this image and the original CentOS image lies in the addition of a Git tool. At this point, the container we created with the new image comes with its own git.
Use exit to exit the container. Note that there are now two containers in Docker engine, which can be viewed using docker ps -a.
Thank you for reading, the above is the content of "what are the basic operations of Docker image". After studying this article, I believe that everyone has a deeper understanding of the basic operations of Docker image. The specific use situation still needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
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.