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

How to manage Docker mirrors

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

Share

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

Editor to share with you how to manage Docker images, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!

What is the mirror image of Docker

Docker is an open source application container engine that allows developers to package their applications and dependency packages into a portable container, then publish them to any popular Linux machine, or virtualize them. Containers are completely sandboxed and do not have any interface to each other. A complete Docker consists of the following parts:

Docker Client client

Docker Daemon daemon

Docker Image Mirror

Docker Container container

An image is a template, a read-only file that contains the environment and code necessary for the program to run. It uses a hierarchical file system to add each change to the original read-only file in the form of a read-write layer. Mirroring is the cornerstone of container operation. You can obtain the finished image from the image repository. Image repositories can use public repositories (https://hub.docker.com/), or build their own private image repositories.

2. Use and access the official public image repository of Docker

Use the search command to search for images in the repository, such as mysql

Docker search mysql

The results are as follows:

Use the pull command to obtain an image, such as the image of mysql

Docker pull mysql

Create a container using the acquired MySQL image

Docker run-- name my_mysql-p 3306 MYSQL_ROOT_PASSWORD=Welcome_1-d mysql

Use docker ps to view container information

Download another image of Tomcat

Docker search tomcatdocker pull tomcat

Docker images displays the existing images locally.

The above is all the contents of the article "how to manage Docker Images". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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