Docker snap is stuck. Cannot use or remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
docker |
New
|
Undecided
|
Unassigned | ||
snapd |
Triaged
|
High
|
Unassigned | ||
docker (Ubuntu) |
Confirmed
|
Undecided
|
Tianon Gravi |
Bug Description
The docker snap is completely stuck on my machine (ubuntu 18.04). I can't use it, and I can't remove it:
karl@tp-main:~$ docker ps
Cannot connect to the Docker daemon at unix://
karl@tp-main:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.39.3 7270 stable canonical✓ core
core18 20190611 1013 stable canonical✓ base
docker 18.06.1-ce 372 stable canonical✓ -
gimp 2.10.12 189 stable snapcrafters -
gtk-common-themes 0.1-16-g2287c87 1198 stable canonical✓ -
lxd 3.14 10972 stable canonical✓ -
multipass 0.7.1 908 beta canonical✓ classic
sublime-text 3207 58 stable snapcrafters classic
karl@tp-main:~$ snap remove docker
error: cannot perform the following tasks:
- Stop snap "docker" services ([--root / is-enabled snap.docker.
)
- Remove data for snap "docker" (372) (remove /var/snap/
karl@tp-main:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.39.3 7270 stable canonical✓ core
core18 20190611 1013 stable canonical✓ base
docker 18.06.1-ce 372 stable canonical✓ disabled
gimp 2.10.12 189 stable snapcrafters -
gtk-common-themes 0.1-16-g2287c87 1198 stable canonical✓ -
lxd 3.14 10972 stable canonical✓ -
multipass 0.7.1 908 beta canonical✓ classic
sublime-text 3207 58 stable snapcrafters classic
karl@tp-main:~$ docker ps
bash: /snap/bin/docker: No such file or directory
karl@tp-main:~$ sudo snap enable docker
docker enabled
karl@tp-main:~$ docker ps
Cannot connect to the Docker daemon at unix://
Rebooting doesn't help.
description: | updated |
Changed in docker (Ubuntu): | |
assignee: | nobody → Tianon Gravi (tianon) |
This bug seems to have two parts:
1) snapd cannot reliably remove a snap
2) docker snap doesn't work correctly
I'd like to split this bug so that only issue 1) is addressed here. Issue 2) was relayed to the maintainer of the snap. I expect him to update the bug report with appropriate tracking information for 2).
As such I'm marking this bug as triaged with the understanding that only 1) is tracked here.