问题:
出现问题:Warning: Stopping docker.service, but it can still be activated by: docker.socket
原因:
Docker默认开启自动唤醒机制,即docker默认在关闭状态下被访问会自动唤醒Docker。
查看Docker是否开启自动唤醒机制:systemctl status docker
如果出现如下图的状态:即为开启自动唤醒机制。
解决方式:
1. 停用Docker自动唤醒机制:systemctl stop docker.socket
2. 查看Docker自动唤醒机制是否关闭:systemctl status docker,发现已经关闭。
3. 停用Docker:systemctl stop docker
扩展:
如果回头想要开启自动唤醒机制:systemctl start docker.socket,即可开启