docker:install_docker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
docker:install_docker [2020/04/15 22:34] – created peter | docker: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 |
</ | </ | ||
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 | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Verify that you can run docker commands without sudo ===== | ||
+ | |||
+ | <code bash> | ||
+ | docker run hello-world | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
---- | ---- | ||
Line 66: | Line 91: | ||
Show the currently installed Docker version. | Show the currently installed Docker version. | ||
- | Now docker is installed in your system. | + | Now docker is installed in your system. |
+ | |||
+ | You can start making a container by downloading a Docker Image from the Docker Registry. | ||
docker/install_docker.txt · Last modified: 2021/02/05 11:32 by peter