如何将 snap docker 从非活动状态切换为活动状态?

Thu*_*fir 8 server container services docker snap

为什么容易切换dockerinactiveactiveAWS上:

ubuntu@ip-172-31-14-19:~$ 
ubuntu@ip-172-31-14-19:~$ sudo snap services
Snap    Service  Startup  Current
docker  dockerd  enabled  active
ubuntu@ip-172-31-14-19:~$ 
ubuntu@ip-172-31-14-19:~$ sudo snap stop docker
Stopped.
ubuntu@ip-172-31-14-19:~$ 
ubuntu@ip-172-31-14-19:~$ sudo snap services
Snap    Service  Startup  Current
docker  dockerd  enabled  inactive
ubuntu@ip-172-31-14-19:~$ 
ubuntu@ip-172-31-14-19:~$ sudo snap start docker
Started.
ubuntu@ip-172-31-14-19:~$ 
ubuntu@ip-172-31-14-19:~$ sudo snap services
Snap    Service  Startup  Current
docker  dockerd  enabled  active
ubuntu@ip-172-31-14-19:~$ 
Run Code Online (Sandbox Code Playgroud)

但在我的家庭系统上它仍然显示为inactive尽管使用 sudo

thufir@dur:~$ 
thufir@dur:~$ sudo snap services
Snap    Service  Startup  Current
docker  dockerd  enabled  inactive
thufir@dur:~$ 
thufir@dur:~$ sudo snap stop docker
Stopped.
thufir@dur:~$ 
thufir@dur:~$ sudo snap start docker
Started.
thufir@dur:~$ 
thufir@dur:~$ sudo snap services
Snap    Service  Startup  Current
docker  dockerd  enabled  inactive
thufir@dur:~$ 
Run Code Online (Sandbox Code Playgroud)

如何翻转开关dockeractive

没有我看到的日志

thufir@dur:~$ 
thufir@dur:~$ sudo /snap/bin/snappy-debug.security scanlog hello-world-service
sudo: /snap/bin/snappy-debug.security: command not found
thufir@dur:~$ 
Run Code Online (Sandbox Code Playgroud)