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 learn the basics of Docker

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article will explain in detail how to learn the basics of Docker, the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

1. Why Docker?

Docker is an open source application container engine based on the Go language and open source according to the Apache2.0 protocol.

1. What problems did Docker solve?

Rapid delivery and deployment (images and containers)

Efficient use and isolation of resources (high-density deployment)

Easy migration and expansion (once encapsulated, run everywhere)

2. Steps for using Docker

Install Docker (install App Store)

Find / download image (find / download app)

Start the container (start the application)

Transplant (install app stores on other phones, continue the previous process)

Containerized comparison of virtual machines

2. Core concepts

1. Docker image

A Docker image is similar to a virtual machine image and can be understood as a read-only template.

2. Docker container

The Docker container is similar to a lightweight sandbox, and Docker uses the container to run and isolate applications. The container is created from an image. Containers can be started, stopped and deleted. Containers are isolated from each other and invisible to each other.

Think of the container as a simple version of the Linux system environment (including root user rights, process space, user space, cyberspace, etc.) and a box of applications running in it

3. Docker warehouse

The Docker repository is the repository for storing images. There can be Public (public warehouse) and Private (private warehouse). The largest public warehouse is [Docker Hub]

3. Install and start 1. Install yum install dockersystemctl enable dockersystemctl start dockerdocker-vdocker info in Aliyun

2. Standard installation

# remove the old version

Yum remove docker\ docker-client\ docker-client-latest\ docker-common\ docker-latest\ docker-latest-logrotate\ docker-logrotate\ docker-engine

# install Docker other dependencies

Yum install-y yum-utils\ device-mapper-persistent-data\ lvm2# set Docker yum source yum-config-manager\-- add-repo\ https://download.docker.com/linux/centos/docker-ce.repo

# install Docker CE

Yum install-y docker-ce docker-ce-cli containerd.io# installs the specified version of Dockeryum list docker-ce--showduplicates | sort-ryum install docker-ce- docker-ce-cli- containerd.io

# start Docker

Systemctl enable dockersystemctl start docker on how to learn the basics of Docker to share here, I hope that the above content can be of some help to you, can learn more knowledge. 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.

Share To

Servers

Wechat

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

12
Report