Forked from lixianyang/gist:3e19ff50bbae1024cebc6b6fc1103848
Created
June 23, 2024 07:47
-
-
Save namjae/d35c9ec21c7b7cf2a20fc1aca266419f to your computer and use it in GitHub Desktop.
ubuntu snap docker run as a normal user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create and join the docker group. | |
$ sudo addgroup --system docker | |
$ sudo adduser $USER docker | |
$ newgrp docker | |
You will also need to disable and re-enable the docker snap if you added the group while it was running. | |
$ sudo snap disable docker | |
$ sudo snap enable docker | |
ref: https://github.com/docker-archive/docker-snap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment