Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minikube version --components docker error #12083

Closed
spowelljr opened this issue Jul 30, 2021 · 3 comments · Fixed by #12085
Closed

minikube version --components docker error #12083

spowelljr opened this issue Jul 30, 2021 · 3 comments · Fixed by #12085
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. os/macos priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@spowelljr
Copy link
Member

% minikube version --components
...

docker:
error

...

MacOS: 11.5.1
Docker: 20.10.7

@spowelljr spowelljr added kind/bug Categorizes issue or PR as related to a bug. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. os/macos labels Jul 30, 2021
@afbjorklund
Copy link
Collaborator

afbjorklund commented Jul 31, 2021

I get the same results on Ubuntu, at least when running with containerd runtime (rather expected?)

I0731 10:31:29.124307  378880 ssh_runner.go:149] Run: docker version --format={{.Client.Version}}
I0731 10:31:29.158173  378880 command_runner.go:124] > 20.10.7
I0731 10:31:29.160482  378880 command_runner.go:124] ! Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
W0731 10:31:29.160524  378880 version.go:68] error getting docker's version: docker version --format={{.Client.Version}}: Process exited with status 1

I suppose we could log the CLI version instead, like we do with ctr (vs containerd) for instance.

$ minikube ssh -- docker version --format='{{.Client.Version}}'
20.10.7
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ssh: Process exited with status 1
$ minikube ssh -- docker --version
Docker version 20.10.7, build f0df350
$ minikube ssh -- dockerd --version
Docker version 20.10.7, build b0f5bc3

@spowelljr
Copy link
Member Author

@afbjorklund Ah, you're right, forgot that instance was containerd, but I agree we should log something else instead of error.

@afbjorklund
Copy link
Collaborator

You get the same results from "ctr version", when running with CRI-O. I will make a PR to use --version instead of version.

ctr:
error

docker:
error

$ minikube ssh -- sudo ctr version
Client:
  Version:  1.4.6
  Revision: d71fcd7d8303cbf684402823e425e9dd2e99285d
  Go version: go1.13.15

ctr: failed to dial "/run/containerd/containerd.sock": context deadline exceeded
ssh: Process exited with status 1
$ minikube ssh -- ctr --version
ctr containerd.io 1.4.6
$ minikube ssh -- containerd --version
containerd containerd.io 1.4.6 d71fcd7d8303cbf684402823e425e9dd2e99285d

Once we fix the bug of installing unused container runtimes, we will start to get a lot more "command not found" instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. os/macos priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants