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

rocker backtraces when insufficient permissions for docker access #236

Closed
tfoote opened this issue May 23, 2023 · 1 comment
Closed

rocker backtraces when insufficient permissions for docker access #236

tfoote opened this issue May 23, 2023 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@tfoote
Copy link
Collaborator

tfoote commented May 23, 2023

If you don't have sudoleess docker access rocker creates a backtrace. Even for -h

~/ws/rockerenv$ rocker --help
usage: rocker [-h] [--noexecute] [--nocache] [--nocleanup] [--pull]
              [--version] [--cuda] [--dev-helpers] [--devices [DEVICES ...]]
              [--env NAME[=VALUE] [NAME[=VALUE] ...]] [--env-file ENV_FILE]
              [--expose EXPOSE] [--git] [--git-config-path GIT_CONFIG_PATH]
              [--group-add GROUP_ADD] [--home] [--name NAME]
              image [command ...]
rocker: error: DependencyMissing encountered: Docker Client failed to connect to docker daemon. Please verify that docker is installed and running. As well as that you have permission to access the docker daemon. This is usually by being a member of the docker group. The underlying error was:
"""
Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))
"""

It should catch that error and give a helpful message.

@tfoote tfoote added help wanted Extra attention is needed good first issue Good for newcomers labels May 23, 2023
@tfoote
Copy link
Collaborator Author

tfoote commented Jun 23, 2023

Duplicate of #34

@tfoote tfoote marked this as a duplicate of #34 Jun 23, 2023
@tfoote tfoote closed this as completed Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant