基于kylin-v10安装docker

1、下载地址

Index of linux/static/stable/x86_64/

2、下载docker-24.0.5.tgz.tar版本

3、上传服务器解压

tar xvf docker-24.0.5.tgz.tar

4、解压的docker拷贝或移动到/usr/bin/目录下

cp docker/* /usr/bin/

5、编写docker.service 文件加入Linux服务当中并开启守护进程

vi /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

# 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 docker

ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock --selinux-enabled=false --default-ulimit nofile=65536:65536

ExecReload=/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=infinity

LimitNPROC=infinity

LimitCORE=infinity

# Uncomment TasksMax if your systemd version supports it.

# Only systemd 226 and above support this version.

#TasksMax=infinity

TimeoutStartSec=0

# set delegate yes so that systemd does not reset the cgroups of docker containers

Delegate=yes

# kill only the docker process, not all processes in the cgroup

KillMode=process

# restart the docker process if it exits prematurely

Restart=on-failure

StartLimitBurst=3

StartLimitInterval=60s

[Install]

WantedBy=multi-user.target

6、添加文件可执行权限

chmod +x /etc/systemd/system/docker.service

7、配置成功后,重新加载 daemon 服务

systemctl daemon-reload

8、启动 docker 服务

systemctl start docker

systemctl enable docker

你可能感兴趣的:(redis,kylin,大数据,docker)