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

Permission denied #1502

Closed
rjaffeco1 opened this issue Oct 22, 2024 · 2 comments
Closed

Permission denied #1502

rjaffeco1 opened this issue Oct 22, 2024 · 2 comments

Comments

@rjaffeco1
Copy link

I am attempting to execute the following docker load command on a host computer with ubuntu 18.04 OS installed.

I entered the following command on terminal session:

magic@magic-OptiPlex-5250-AIO:~/Downloads$ docker load -i ./sdkmanager-2.2.0.12021-Ubuntu_18.04_docker.tar.gz

The following results were displayed:

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/load?quiet=0": dial unix /var/run/docker.sock: connect: permission denied
magic@magic-OptiPlex-5250-AIO:~/Downloads$

Do I need to install docker desktop on my host computer. Please walk me thru the steps

Thanks for your support

warmly, bob

@IsusRamzy
Copy link

sudo

@thaJeztah
Copy link
Member

Yes, this is expected for a default Docker Engine on Linux setup. Having access to the Docker Engine API is equivalent to root access on the host. Because of that the default permissions on the socket require you to either be root (or using sudo), or for the user to be part of the docker group; https://docs.docker.com/engine/install/linux-postinstall/

You can use Docker Desktop for Linux (https://docs.docker.com/desktop/setup/install/linux/), which runs the daemon inside a non-privileged VM, or run docker in rootless mode (https://docs.docker.com/engine/security/rootless/)

Let me close this ticket as it's not a bug, but feel free to continue the converrsatoni

@thaJeztah thaJeztah closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants