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

Show the Fix/Doc and just not the Error, for installed but unhealthy drivers #10007

Closed
afbjorklund opened this issue Dec 19, 2020 · 2 comments Β· Fixed by #11357
Closed

Show the Fix/Doc and just not the Error, for installed but unhealthy drivers #10007

afbjorklund opened this issue Dec 19, 2020 · 2 comments Β· Fixed by #11357
Labels
co/docker-driver Issues related to kubernetes in container co/podman-driver podman driver issues kind/feature Categorizes issue or PR as related to a new feature. needs-solution-message Issues where where offering a solution for an error would be helpful

Comments

@afbjorklund
Copy link
Collaborator

afbjorklund commented Dec 19, 2020

As seen in #10006 (comment)

current output: (only error)

πŸ‘Ž  Unable to pick a default driver. Here is what was considered, in preference order:
    β–ͺ docker: Not healthy: "docker version --format {{.Server.Os}}-{{.Server.Version}}" exit status 1: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version: dial unix /var/run/docker.sock: connect: permission denied 
    β–ͺ podman: Not healthy: "sudo -k -n podman version --format {{.Version}}" exit status 1: sudo: a password is required

improved output: (with fix)

πŸ‘Ž  Unable to pick a default driver. Here is what was considered, in preference order:
    β–ͺ docker: Not healthy: "docker version --format {{.Server.Os}}-{{.Server.Version}}" exit status 1: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version: dial unix /var/run/docker.sock: connect: permission denied (Add your user to the 'docker' group: 'sudo usermod -aG docker $USER && newgrp docker')
    β–ͺ podman: Not healthy: "sudo -k -n podman version --format {{.Version}}" exit status 1: sudo: a password is required (Add your user to the 'sudoers' file: 'anders ALL=(ALL) NOPASSWD: /usr/bin/podman')

@afbjorklund afbjorklund added kind/feature Categorizes issue or PR as related to a new feature. co/docker-driver Issues related to kubernetes in container co/podman-driver podman driver issues labels Dec 19, 2020
@afbjorklund
Copy link
Collaborator Author

Also related to: #7963 where we need to document the requirement to set up the access in the first place

@afbjorklund afbjorklund changed the title Show the Fix and just not the Error, for installed but unhealthy drivers Show the Fix/Doc and just not the Error, for installed but unhealthy drivers Dec 20, 2020
@priyawadhwa priyawadhwa added the kind/support Categorizes issue or PR as a support question. label Dec 28, 2020
@FatmaG
Copy link

FatmaG commented Jan 13, 2021

Suggestion: Add your user to the 'docker' group: 'sudo usermod -aG docker $USER && newgrp docker' that solves it!

@afbjorklund afbjorklund added the needs-solution-message Issues where where offering a solution for an error would be helpful label Jan 13, 2021
@afbjorklund afbjorklund removed kind/support Categorizes issue or PR as a support question. triage/long-term-support labels May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container co/podman-driver podman driver issues kind/feature Categorizes issue or PR as related to a new feature. needs-solution-message Issues where where offering a solution for an error would be helpful
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants