User Tools

Site Tools


docker:install_docker

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
docker:install_docker [2020/05/13 10:38] – [Check the kernel version and the OS architecture] peterdocker:install_docker [2021/02/05 11:21] peter
Line 35: Line 35:
  
 <code bash> <code bash>
-apt install -y docker.io+sudo apt install -y docker.io
 </code> </code>
  
 Wait until the installation has been completed. Wait until the installation has been completed.
 +
 +----
 +
 +===== Add your user to the docker group =====
 +
 +<code bash>
 +sudo usermod -aG docker $USER
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  This allows docker to be run without using sudo.
 +</WRAP>
 +
 +----
 +
 +===== Verify that you can run docker commands without sudo =====
 +
 +<code bash>
 +docker run hello-world
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  If an error is seen such as **docker: Got permission denied while trying to connect to the Docker daemon socket**, then log out and log back in.
 +</WRAP>
 +
  
 ---- ----
docker/install_docker.txt · Last modified: 2021/02/05 11:32 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki