docker:install_docker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker:install_docker [2020/07/15 09:30] – external edit 127.0.0.1 | docker:install_docker [2021/02/05 11:32] (current) – 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: | ||
+ | |||
+ | Log out and log back in. | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Verify that you can run docker commands without sudo ===== | ||
+ | |||
+ | <code bash> | ||
+ | docker run hello-world | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | <code bash> | ||
+ | sudo chmod 666 / | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
---- | ---- |
docker/install_docker.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1