In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Docker basic Management the structure of this chapter
Core concepts of 1.Docker
2.Docker mirroring operation
3.Docker container operation
4.Docker resource control
5.Docker data volume management
Docker Overview what is Docker?
1. It is a lightweight "virtual machine"
two。 Open source tools for running applications in a Linux container
The difference between Docker and virtual machine
Refer to Table 1-1 of the case guidance document
Usage scenario of Docker (spring clond microservice)
1. Packaged applications simplify deployment
two。 Can be migrated at will without underlying hardware
3. For example, servers are migrated from Tencent Cloud to Aliyun
Core concept and installation method of Docker core concept of Docker
1. Mirror image
two。 Container
3. Warehouse (public, private)
Two ways to install Docker in CentOS
1. Use CURL to get Docker's installation script for installation
two。 Use the YUM repository to install Docker
Demo: install Docker on CentOS 7-4 [root @ localhost ~] # yum install yum-utils device-mapper-persistent-data lvm2-y [root@localhost ~] # yum-config-manager-- add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo[root@localhost ~] # ls / etc/yum.repos.d/CentOS-CR.repo CentOS-fasttrack.repo CentOS-Sources.repo docker-ce.repo# will display the docker mirror at this time Image source [root@localhost ~] # yum install-y docker-ce [root@localhost ~] # systemctl stop firewalld.service [root@localhost ~] # setenforce 0 [root@localhost ~] # systemctl start docker.service [root@localhost ~] # systemctl enable docker.service [root@localhost ~] # docker search nginx # search for nginx image NAME DESCRIPTION STARS OFFICIAL AUTOMATEDnginx Official build of Nginx. 12375 [OK] jwilder/nginx-proxy Automated Nginx reverse proxy for docker con... 1704 [OK] richarvey/nginx-php-fpm Container running Nginx + PHP-FPM capable of … [OK] linuxserver/nginx An Nginx container, brought to you by LinuxS... 84. The images in the warehouse shown in # are ranked by stars. The higher the stars, the greater the number of downloads. [root@localhost ~] # docker pull nginx# We do not use acceleration to download Using default tag: latestlatest: Pulling from library/nginx000eee12ec04: Downloading 3.083MB/27.09MBeb22865337de: Downloading 1.703MB/23.74MBbee5d581ef8b: Download complete# will be very slow at this time. Sometimes even stutter # at this time, we can do an optimization operation here: image acceleration: this command can search "official Image acceleration" on Aliyun's official website to get its own command code (you need to register the account of Aliyun platform first) ``to find the console, log in and find "products and Services" on the left, and then find "Container Image Service". Then find the "Image Accelerator" on the left, and select your own system in the "Operation document". Here we need to select "CentOS" to find the image acceleration profile generated by your account `[root@localhost ~] # 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.