First, let’s understand what Docker is? Docker is a container engine that can be used to deploy applications. Docker enables rapid delivery, testing, and deployment of code with strong portability. Docker mainly includes three basic concepts: image, container, and warehouse Image: It is a template used to create a Docker container, similar to the Windows or Linux system image we download when installing a virtual machine. Container: An application or a group of applications that run independently. It is an entity when the image is running. It is similar to installing a Windows system on a virtual machine software. The running system is a container. Containers can be created, started, stopped, deleted, paused, etc. Warehouse: used to store images How to install Docker? Take the centos system as an example: {If you don't have a Linux server, you can install a virtual machine on your local machine and install a Linux system, or buy a server from Alibaba Cloud or Tencent Cloud. If you are a beginner, a low-configuration server costs only a few dozen yuan a year.} Use the following command to set up the stable repository. $ sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo Install the latest version of Docker Engine-Community and containerd using the command: sudo yum install docker-ce docker-ce-cli containerd.io Start Docker: sudo systemctl start docker Verify that Docker Engine - Community is installed correctly by running the hello-world image. sudo docker run hello-world At this point, the Docker environment installation has come to an end. If you want to install Docker on other Linux systems, you can refer to the steps in the novice tutorial. Next, you can try it yourself and use Docker to build MySQL, Tomcat, Nginx and other environments, and become familiar with some common Docker commands and operations. Some companies also use Docker in their environment deployment. It is also helpful to learn some knowledge in this area when doing tests. To improve and advance Docker, you can learn it together with Docker + Kubernetes (k8s for short). Well, this is the end of this article about the simple method of setting up the Docker environment. For more relevant content on setting up the Docker environment, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Native JS to implement sharing sidebar
>>: Using streaming queries in MySQL to avoid data OOM
Table of contents 1. Basic usage and logic 2. Fea...
Solution to MySql service disappearance for unkno...
Table of contents Preface Optional Chaining Nulli...
This article records the specific steps for downl...
download MySQL official download, select Windows ...
1 Introduction After "Maven deploys Springbo...
1. Which three formats? They are: gif, jpg, and pn...
Table of contents Preface Check Constraints Creat...
I believe that students who have learned about th...
This article example shares the specific code of ...
1. What are custom hooks Logic reuse Simply put, ...
Effect: When the slideshow moves in one direction...
Treemaps are mainly used to visualize tree-like d...
Add monitoring host Host 192.168.179.104 is added...
1.core file When a Segmentation fault (core dumpe...