question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

microk8s inspect incorrectly claims that docker is installed

See original GitHub issue

Running microk8s inspect was telling me that docker was installed. I fully removed including running apt purge it and still got the following message:

WARNING:  Docker is installed. 
File "/etc/docker/daemon.json" does not exist. 
You should create it and add the following lines: 
{
    "insecure-registries" : ["localhost:32000"] 
}
and then restart docker with: sudo systemctl restart docker

It was only after looking at the code that I figured out what was actually happening. It turns out that that just having /etc/docker is all that is needed to get this warning.

https://github.com/ubuntu/microk8s/blob/5e23ac6a001bf3fee2cbb3cd4f1781c6bc945e7e/scripts/inspect.sh#L161

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
wayneconnollycommented, Nov 13, 2020

On a previous server I had docker installed, then I uninstalled it. It left the directory /etc/docker behind. When I installed microk8s it complained of docker being installed. I deleted the directory and all was good after that. I think a better check would be /bin/docker.

0reactions
gerrywastakencommented, Dec 4, 2021

Thank you @neoaggelos ❤️

Read more comments on GitHub >

github_iconTop Results From Across the Web

microk8s inspect incorrectly claims that docker is installed #1721
When I installed microk8s it complained of docker being installed. I deleted the directory and all was good after that. I think a...
Read more >
Troubleshooting - MicroK8s
It is important to recognise that things can go wrong. But MicroK8s gives you tools to help work out what has gone wrong,...
Read more >
A local Kubernetes with microk8s - ITNEXT
This will install the microk8s command and an api-server, controller-manager, scheduler, etcd, kubelet, cni, kube-proxy, and docker.
Read more >
Microk8s stopped working. Status says not running, inspect ...
One node had gone offline (microk8s not running) due to a stuck unsuccessful auto-refresh of the microk8s snap.
Read more >
Install a local Kubernetes with MicroK8s - Ubuntu
Installation is limited by how fast you can download a couple of hundred megabytes and the removal of MicroK8s leaves nothing behind.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found