目录
服务介绍
docker 是一个供开发和运维人员开发、测试、部署和运行应用的容器平台。
docker compose 是一个用于运行和管理多个容器的自动化编排工具。
软件下载
下载最新版本离线软件包地址:
docker下载地址 :https://download.docker.com/linux/static/stable/x86_64/
docker compose下载地址:https://github.com/docker/compose/releases/
服务配置
配置系统systemd服务docker.service文件,实现服务开机自启
# vim /etc/systemd/system/docker.service
# 添加
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service
Wants=network-online.target
[Service]
Type=notify
ExecStart=/usr/bin/dockerd
ExecReload=/bin/kill -s HUP $MAINPID
LimitNOFILE=infinity
LimitNPROC=infinity
TimeoutStartSec=0