Ubutntu安装docker启动报Removed /etc/systemd/system/docker.service.

Ubutntu安装docker启动报Removed /etc/systemd/system/docker.service.的错误,只需要执行以下三条命令。

systemctl unmask docker.service
systemctl unmask docker.socket
systemctl start docker.service

原文地址:https://www.cnblogs.com/li-bing/p/9245783.html

时间: 2024-07-31 10:55:49

Ubutntu安装docker启动报Removed /etc/systemd/system/docker.service.的相关文章

Linux安装ElasticSearch启动报错的解决方法

Linux安装ElasticSearch后,ElasticSearch是不能用root用户启动的,以root用户启动会报错Refer to the log for complete error details,出现这种情况该如何解决呢?下面小编就为大家带来Linux安装ElasticSearch启动报错的解决方法,一起去看看吧 今天就出现的异常问题专门解决一下.你安装好ElasticSearch以后,在启动的时候需要注意的问题是,ElasticSearch是不能用root用户启动的(这是根据el

nginx启动报错:Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' fo

一.背景 这个错误在重启nginx或者启动nginx的时候,经常会出现.我之前也一直认为出现这个错误是因为有程序占用了nginx的进程.但是知其然不知其所以然.每次报错都有点懵逼,所以这边一步步排查错误,做个记录. 二.排错过程 1.按照提示 //按照提示,执行此命令,查看错误原因 systemctl status nginx.service 由报错信息可知,nginx绑定80端口失败.详细错误请输入 -l 继续查看 2.继续跟踪错误 //查看错误的详情 systemctl status ngi

Loaded:loaded(/usr/lib/systemd/system/iptables.service;enabled)Active: inactive

[[email protected] ~]# service iptables start Redirecting to /bin/systemctl start  iptables.service [[email protected] ~]# /bin/systemctl start  iptables.service [[email protected] ~]# service iptables status Redirecting to /bin/systemctl status  ipt

UIS R170 G2安装centos启动报Attempt to access block outside partition

[关键词]:Attempt to access block outsidepartition [适用版本]:UISR170 G2 [问题描述]: 正常安装centos后启动报"Attempt to access block outsidepartition" [问题分析]: 默认UIS R170 G2的BIOS默认为UEFI模式,导致超过4个主分区. [解决方法]: 1.设置raid卡(安装raid配置手册设置) 2.进入bios,设置为legacy  BIOS mode(默认是UEF

docker 启动报错--工作中遇到的问题

问题描述 docker 启动 frps 容器的时候报错: docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/etc/frp/f

CentOS7安装docker启动报错

执行yum install docker -y 命令安装docker 然后启动服务 systemctl start docker,服务启动失败 查询日志文件/var/log/messages,显示报错:Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. 问题原因:此linux的内核中的SELinux不支持 overlay2 graph driver 解决办法:

docker 启动报错 driver not supported

场景:升级docker 至 docker-ce-17.03.3 启动异常报错 systemctl start docker 报错内容: level=error msg="[graphdriver] prior storage driver overlay2 failed: driver not supported" 解决办法: sudo mv /var/lib/docker /var/lib/docker.old service docker start rm -rf /var/lib

docker启动报错解决及分析(Cannot create container for service *******: cannot mount volume over existing file, file exists /var/lib/docker/overlay2/)

现象: Cannot create container for service *******: cannot mount volume over existing file, file exists /var/lib/docker/overlay2/************/merged/etc/php/7.0/fpm/php.ini 之前的也出现过这种情况,没记录,时间长了也忘了怎么解决了 记录一下,传播一下 我在用docker-compose启动的时候,报这个错 说直白了,原因就在于我们启

Docker启动报错

time="2015-02-10T15:26:08+08:00" level="info" msg="+job serveapi(unix:///var/run/docker.sock)" time="2015-02-10T15:26:08+08:00" level="info" msg="WARNING: You are running linux kernel version 2.6.32-4