#662·dive

run dive without sudo

Author: dp-antoCreated Nov 12, 2025Updated Mar 9, 2026

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.