吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1379|回复: 5
收起左侧

[求助] ubuntu18.04离线安装docker启动报错

[复制链接]
大菜鸡 发表于 2021-3-29 16:11
#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
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
1 (2).jpg

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

lhpl8000 发表于 2021-3-29 16:44
提示是:未找到服务,尝试 sudo systemctl start docker.service 把服务名写全
myb666 发表于 2021-3-29 16:56
不能连接到服务,1查看服务是否开起,2查看调用服务名是否存在是否正确
 楼主| 大菜鸡 发表于 2021-3-29 17:05
lhpl8000 发表于 2021-3-29 16:44
提示是:未找到服务,尝试 sudo systemctl start docker.service 把服务名写全

试过了,还是报一样的错误
hackyun 发表于 2021-3-29 21:52
应该是离线包安装的原因 安装过程中某些包没有安装上
wangyancun1999 发表于 2021-3-29 22:03
systemctl daemon-reload
systemctl restart docker
试试
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2025-1-17 00:10

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表