Get the App
SLTechnology News&Howtos  ›  Servers  › 

Deployment and control commands for Docker

Shulou Source: shulou.com Published: 2022-06-03 02:50:12 10月03日 Update

I. Overview of Docker

Docker is an open source application container engine that allows developers to package their applications and dependencies into a portable container, then publish them to any popular Linux or Windows 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:

DockerClient client

Docker Daemon daemon

Docker Image Mirror

DockerContainer container

Second, comparison with virtual machine

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 diagram:

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 name command file name Ali run common use environment application address engine machine mode mutual individual global Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Microsoft MariaDB OPPO Reno Linux