In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the introduction and installation process of Docker". In the daily operation, I believe many people have doubts about the introduction and installation process of Docker. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "introduction and installation process of Docker". Next, please follow the editor to study!
What is Docker?
Docker is an open source software deployment solution
Docker is also a lightweight application container framework.
Docker can package, publish, and run any application.
Docker is an open source engine that can easily create a lightweight, portable, self-sufficient container for any application. Containers that developers compile and test on notebooks can be deployed in batches in production environments, including VMs (virtual machines), bare metal, OpenStack clusters and other basic application platforms.
Docker is commonly used in the following scenarios:
Automatic Packaging and Distribution of web applications
Automated testing and continuous integration, release
Deploy and adjust databases or other background applications in a service-oriented environment
Build your own PaaS environment by compiling or extending existing OpenShift or Cloud Foundry platforms from scratch.
Main uses of Docker
Provide an one-time environment. For example, testing other people's software locally and providing an environment for unit testing and building during continuous integration.
Provide flexible cloud services. Because the Docker container can be switched on and off, it is very suitable for dynamic capacity expansion and reduction.
Build a micro-service architecture. Through multiple containers, a machine can run multiple services, so the micro-service architecture can be simulated locally.
Three elements of Docker
Mirror image
Container
Warehouse
Docker architecture
Docker uses the client-server architecture model and uses remote API to manage and create Docker containers.
The Docker container is created through a Docker image.
The relationship between containers and mirrors is similar to objects and classes in object-oriented programming.
Docker installation
Docker is divided into community version and enterprise version, the community version is free, the enterprise version is charged, we choose the community version for individual learning, that is, the installation of docker-ce, and follow-up notes are based on this.
1. Use the official installation script to install automatically:
Curl-fsSL https://get.docker.com | bash-s docker-- mirror Aliyun
2. CentOS 7 (use yum to install, and my server is Aliyun centos7):
Step 1: install some necessary system tools
Sudo yum install-y yum-utils device-mapper-persistent-data lvm2
Step 2: add software source information
Sudo yum-config-manager-- add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Step 3: update and install Docker-CE
Sudo yum makecache fast sudo yum-y install docker-ce
Step 4: enable Docker service
Sudo systemctl start docker
Step 5: installation check
Common command
Start docker:systemctl start docker
Stop docker:systemctl stop docker
Restart docker:systemctl restart docker
View docker status: systemctl status docker
Boot: systemctl enable docker
At this point, the study on the "introduction and installation process 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!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.