User Tools

Site Tools


cheatsheet:docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cheatsheet:docker [2023/07/24 08:47] – created kamaradskicheatsheet:docker [2023/07/24 09:00] (current) – [allow non-root to operate docker] kamaradski
Line 1: Line 1:
-yada+====== docker command cheatsheet ====== 
 +[[https://docs.docker.com/engine/install/debian/|install docker on Debian]] 
 + 
 + 
 +===== 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. 
 + 
 +<code> 
 +// 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 
 +</code>
cheatsheet/docker.1690188465.txt.gz · Last modified: 2023/07/24 08:47 by kamaradski