Skip to content

run dive without sudo #662

@dp-anto

Description

@dp-anto

When I run dive test:latest I get:

Image Source: docker://test:latest
Extracting image from docker-engine... (this can take a while for large images)
> could not determine docker host: context "default": context not found: open /home/john/.docker/contexts/meta/37a8eec1ce19687d132fe29051dca629d164e2c4958ba141d5f4133a33f0688f/meta.json: no such file or directory
cannot fetch image
unable to parse docker host ``

Conversely when I run it with sudo, sudo dive test:latest, it works. Is there a way to run dive without using sudo? I was expecting not to need sudo given that my user (the one that is running dive) is already associated to the docker group that is the one need to connect to the Docker daemon and the dive process should inherit my supplementary groups.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions