Warning: Stopping docker.service, but it can still be activated by: docker.socket

简介: Warning: Stopping docker.service, but it can still be activated by: docker.socket

问题描述

docker服务在设置自动启动时,如果想关闭docker,常常会遇到以下错误

Warning: Stopping docker.service, but it can still be activated by:
 docker.socket

image.png

这是因为除了docker.service单元文件外,还有一个docker.socket单元文件…这是用来激活socket的。这个警告意味着如果你在docker服务没有运行的情况下尝试连接docker套接字,那么systemd会自动为你启动docker。

解决思路

关闭docker.socket

systemctl stop docker.socket

image.png

相关文章
|
4月前
|
编解码 Linux Docker
如何在Windows上使用Docker,搭建一款实用的个人IT工具箱It- Tools
如何在Windows上使用Docker,搭建一款实用的个人IT工具箱It- Tools
69 0
|
6天前
|
Kubernetes Linux Docker
【Azure 应用服务】使用Docker Compose创建App Service遇见"Linux Version is too long. It cannot be more than 4000 characters"错误
【Azure 应用服务】使用Docker Compose创建App Service遇见"Linux Version is too long. It cannot be more than 4000 characters"错误
|
2月前
|
关系型数据库 MySQL Linux
Docker安装mysql详细教程, mysqld: Can‘t read dir of ‘/etc/mysql/conf.d/‘(报错已解决)
Docker安装mysql详细教程, mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory) 已解决
|
10月前
|
Unix Docker 容器
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker
|
4月前
|
Docker 容器
docker使用遇到问题Got permission denied while trying to connect to the Docker daemon socket
docker使用遇到问题Got permission denied while trying to connect to the Docker daemon socket
92 0
|
存储 运维 Java
不认识docker,怎么好意思说自己是干IT的
不认识docker,怎么好意思说自己是干IT的
90 0
|
Linux Docker 容器
docker报错:System has not been booted with systemd as init system (PID 1). Can‘t operate.
docker报错:System has not been booted with systemd as init system (PID 1). Can‘t operate.
1337 0
|
Docker Python 容器
解决docker 2022-11-16 14:54:26 python: can‘t open file ‘/src/main.py‘: [Errno 2]
解决docker 2022-11-16 14:54:26 python: can‘t open file ‘/src/main.py‘: [Errno 2]
181 0
|
Docker 容器
docker出现问题:You cannot attach to a stopped container, start it first 解决方案
docker出现问题:You cannot attach to a stopped container, start it first 解决方案
1172 0
docker出现问题:You cannot attach to a stopped container, start it first 解决方案
|
JSON Unix Linux
denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock.......
denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock.......
161 0
denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock.......
下一篇
云函数