In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install Docker offline in Centos7. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Download Docker and install
Docker package download address
# download the docker-20.10.0 package https://download.docker.com/linux/static/stable/x86_64/docker-20.10.0.tgz# and upload it to the Centos system / data/ directory, such as scp docker-20.10.0.tgz root@192.168.0.5:/data/#, enter the data directory Extract docker package cd / datatar-zxvf docker-20.10.0.tgz# move the extracted docker file contents to / usr/bin/ directory cp docker/* / usr/bin/# view docker version docker version# view docker information docker info configuration Docker boot self-startup service # add docker.service file vi / etc/systemd/system/docker.service# insert mode by I Copy the following: [Unit] Description=Docker Application Container EngineDocumentation= https://docs.docker.comAfter=network-online.target firewalld.serviceWants=network-online.target [Service] Type=notify# the default is not to use systemd for cgroups because the delegate issues still# exists and systemd currently does not support the cgroup feature set required# for containers run by dockerExecStart=/usr/bin/dockerdExecReload=/bin/kill-s HUP $MAINPID# Having non-zero Limit*s causes performance problems due to accounting overhead# in the kernel. We recommend using cgroups to do container-local accounting.LimitNOFILE=infinityLimitNPROC=infinityLimitCORE=infinity# Uncomment TasksMax if your systemd version supports it.# Only systemd 226 and above support this version.#TasksMax=infinityTimeoutStartSec=0# set delegate yes so that systemd does not reset the cgroups of docker containersDelegate=yes# kill only the docker process Not all processes in the cgroupKillMode=process# restart the docker process if it exits prematurelyRestart=on-failureStartLimitBurst=3StartLimitInterval=60s [Install] WantedBy=multi-user.target# add file executable permissions chmod + x / etc/systemd/system/docker.service# reload configuration file systemctl daemon-reload# Startup Dockersystemctl start docker# View docker Startup status systemctl status docker# View Startup Container docker ps# Settings Boot systemctl enable docker.service# View docker Boot status enabled: on Disabled: shut down systemctl is-enabled docker.service. That's all for the article on "how Centos7 installs Docker offline". Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.
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.