In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Why study Docker?
Docker allows you to package all applications and their origins into a standardized unit of software development.
The Docker container packages the software and all the files it needs to run and install (code, runtime, system tools, system libraries), which ensures that it always runs in the same way no matter what environment it is running in.
Introduction to the version of Docker
There are Docker-CE and Docker-EE in Docker.
Docker-CE refers to the Docker Community Edition, which is maintained and supported by the community. It is a free version and is suitable for individual developers and small teams.
Docker-EE refers to Docker Enterprise Edition, which is a paid version, technical support provided by after-sales team and technical team, and is designed for enterprise development and IT team.
Compared with Docker-EE, it adds some additional functions and, more importantly, provides a more secure guarantee.
In addition, the release version of Docker is divided into Stable version and Edge version, the difference is that the former is a quarterly stable version (slow release), and the latter is a monthly marginal version (fast release).
In general, Docker-CE is sufficient to meet our needs.
Installation of Docker
This paper mainly introduces the installation of Docker on Windows/MacOS and Centos/Ubuntu.
How to install Docker on centos/ubuntu
It is recommended to use Ali Cloud's source for docker installation, which is fast.
Official installation tutorial: https://docs.docker.com/install/linux/docker-ce/centos/#install-using-the-repository
Ali source installation tutorial: https://help.aliyun.com/document_detail/60742.html
The following is the handling:
Ubuntu:
# step 1: install some necessary system tools
Sudo apt-get update
Sudo apt-get-y install apt-transport-https ca-certificates curl software-properties-common
# step 2: install the GPG certificate
Curl-fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add-
# Step 3: write software source information
Sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release-cs) stable"
# Step 4: update and install Docker-CE
Sudo apt-get-y update
Sudo apt-get-y install docker-ce
Centos:
# 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 service docker start
Installation of Docker under Windows/MacOS
Let's take a look at the official requirements for the installation environment:
Docker for windows runs Docker on Windows, system requirements, Windows10 x64 supports Hyper-V
Versions below Windows10 require the use of Docker Toolbox,Docker Toolbox for Windows7/8.1.
The following is the official download address:
Http://get.daocloud.io/#install-docker-for-mac-windows
If the official website cannot be downloaded, salted fish has prepared an offline version for everyone, and you can get it by replying to "Docker" in the background.
After downloading, you can install it like a fool.
How do I verify that the installation is successful?
Enter docker version on the command line and output a bunch of version information to indicate that the installation is successful.
As follows:
Docker Accelerator configuration
Docker Accelerator can speed up the acquisition of official Docker images in China, otherwise the process of downloading images will be slow or even impossible.
Configure Ali Cloud Accelerator
Log in to your Ali Cloud console and find the container image service-> Image Accelerator-> replication Accelerator address.
Click this if you can't find it:
Https://cr.console.aliyun.com/cn-hangzhou/mirrors
Centos/Ubuntu
Use the accelerator by modifying the daemon configuration file / etc/docker/daemon.json.
Sudo mkdir-p / etc/docker
Sudo tee / etc/docker/daemon.json
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.