Thu*_*fir 8 server container services docker snap
为什么容易切换docker从inactive到activeAWS上:
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)
如何翻转开关docker来active?
没有我看到的日志:
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)
| 归档时间: |
|
| 查看次数: |
1179 次 |
| 最近记录: |