Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Overview and installation steps of Docker

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

This article mainly introduces "Overview and installation steps of Docker". In daily operation, I believe many people have doubts about the overview and installation steps of Docker. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "Overview and installation steps of Docker". Next, please follow the editor to study!

I. Overview

Official website:

Https://www.docker.com

Dockerhub:

Https://hub.docker.com/

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

Docker allows developers to package their applications and dependencies into a lightweight, portable container and publish them to any popular Linux machine.

Containers are completely sandboxed and do not have any interfaces to each other (similar to iPhone's app). More importantly, the container performance overhead is extremely low.

Publishing a project from windows to linux environment is not cross-platform. Previously, to release a jar or war, you need to configure redis, mysql, ES, and jdk on the machine. After using docker, you can bring the environment to package (mirror).

II. Composition

Image: create a container through an image, which is equivalent to a root file system, creating a template for a Docker container.

Container (container): runs the application independently and is the entity that mirrors the runtime.

Repository: the Docker repository is used to hold images and can be understood as a code repository in code control.

III. Installation

Installation documentation for CentOS:

Https://docs.docker.com/engine/install/centos/

1. Uninstall:

Sudo yum remove docker\ docker-client\ docker-client-latest\ docker-common\ docker-latest\ docker-latest-logrotate\ docker-logrotate\ docker-engine

2. Install the package:

Sudo yum install-y yum-utils

3. Set up the image warehouse

Sudo yum-config-manager\-- add-repo\ https://download.docker.com/linux/centos/docker-ce.repo

Do not use the image address of Aliyun:

Sudo yum-config-manager\-- add-repo\ http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

Install the core of the latest docker-ce Community Edition:

Sudo yum install docker-ce docker-ce-cli containerd.io

Or specify a version:

Sudo yum install docker-ce- docker-ce-cli- containerd.io

Start as a service:

Sudo systemctl start docker

Docker run:

Sudo docker run hello-world

At this point, the study on the "Overview and installation steps of Docker" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Containers mirrors steps repositories learning applications code more machines environments help running practical important and then between each other not between addresses entities Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Docker Linux Shulou Tech Info Shulou Technology