User Tools

Site Tools


cheatsheet:docker

docker command cheatsheet

allow non-root to operate docker

Per default, the docker commands can only be run by root, in order to allow another user to fully operate docker you need to make the following changes.

// add your user to docker usergroup
$ sudo usermod -aG docker yourusername

// to make this effective login/logout or start a new terminal session with:
$ su yourusername

// test-1 (should see the docker usergroup listed here):
$ id yourusername

// test-2:
$ docker info
cheatsheet/docker.txt · Last modified: 2023/07/24 09:00 by kamaradski