Get the App
SLTechnology News&Howtos  ›  Servers  › 

Docker basic deployment and what are the basic control commands

Shulou Source: shulou.com Published: 2022-06-01 02:20:48 11月17日 Update

What is the basic deployment of Docker and what are the basic control commands? for this question, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

I. Overview of Docker

Docker is an open source application container engine that allows developers to package their applications and dependencies into a portable image, publish them to any popular Linux or Windows machine, and virtualize them. Containers are completely sandboxed and will not have any interface with each other, and the two are completely independent.

Second, comparison with virtual machines. Third, Docker core concept image (Image): similar to virtual machine image container (Container): similar to linux system environment, running and isolating applications. When the container starts from the image, docker creates a writeable layer at the top of the image, and the image itself is read-only and remains the same. Repository: each warehouse stores a certain type of image.

Container, warehouse, image operation relationship

IV. Basic deployment of Docker

1. Install the environment package

Yum install-y yum-utils device-mapper-persistent-data lvm2

2. Use Ali's docker warehouse

[root@localhost ~] # yum-config-manager-- add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo// installs docker-ce [root@localhost ~] # yum install-y docker-cesystemctl start dockersystemctl enable dockersystemctl stop firewalld.servicesetenforce 0

3. Accelerate the download of images

[root@localhost docker] # tee / etc/docker/daemon.json

Tags: Container image warehouse label command name file name Ali run control common environment problem application between address engine more mode Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information MySQL macOS Xiaomi