From 2f452f95d523c94abce937856f2a14abe97323ee Mon Sep 17 00:00:00 2001 From: Bruno Verachten Date: Fri, 6 Nov 2020 10:30:19 +0100 Subject: [PATCH 1/4] Removed sudo. --- docs/User-Guide_Advanced-Features.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/User-Guide_Advanced-Features.md b/docs/User-Guide_Advanced-Features.md index 822fb279..efccf118 100644 --- a/docs/User-Guide_Advanced-Features.md +++ b/docs/User-Guide_Advanced-Features.md @@ -141,18 +141,18 @@ Preinstallation requirements: This method is based on Docker Debian installation [documentation](https://docs.docker.com/engine/install/debian/). Execute this as root: ```bash -sudo apt-get remove docker docker-engine docker.io containerd runc -sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - -sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" -sudo apt update -sudo apt-get install docker-ce docker-ce-cli containerd.io +apt-get remove docker docker-engine docker.io containerd runc +apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common +curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - +add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" +apt update +apt-get install docker-ce docker-ce-cli containerd.io ``` Test if Docker works correctly: ```bash -sudo docker run hello-world +docker run hello-world ``` If you get that kind of output, then Docker install went fine: @@ -165,9 +165,11 @@ This message shows that your installation appears to be working correctly. If you would like to use Docker as a non-root user, you should now consider adding your user to the `docker` group with something like: ```bash -sudo usermod -aG docker your-user +usermod -aG docker your-user ``` +You will have to log out, and log in once more in order to be able to run Docker without being root. + Let's try a last test to see if a Docker container can be seen outside of your Armbian machine: ```bash From 92539a7ed3066647a4abad1b6333538d8c352d1f Mon Sep 17 00:00:00 2001 From: Bruno Verachten Date: Fri, 6 Nov 2020 10:30:49 +0100 Subject: [PATCH 2/4] No more outdated --- docs/User-Guide_Advanced-Features.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/User-Guide_Advanced-Features.md b/docs/User-Guide_Advanced-Features.md index efccf118..180f9f8c 100644 --- a/docs/User-Guide_Advanced-Features.md +++ b/docs/User-Guide_Advanced-Features.md @@ -114,7 +114,7 @@ Check which wireless stations / routers are in range iwlist wlan0 scan | grep ESSID -#### How to freeze your filesystem? (outdated) +#### How to freeze your filesystem? In certain situations it is desirable to have a virtual read-only root filesystem. This prevents any changes from occurring on the root filesystem that may alter system behavior and it allows a simple reboot to restore a system to its clean state. From a2bed250eeb59d8e43264fedcc70b712c22daba1 Mon Sep 17 00:00:00 2001 From: Bruno Verachten Date: Fri, 6 Nov 2020 10:31:37 +0100 Subject: [PATCH 3/4] Up to date. --- docs/User-Guide_Advanced-Features.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/User-Guide_Advanced-Features.md b/docs/User-Guide_Advanced-Features.md index 180f9f8c..f9eeb104 100644 --- a/docs/User-Guide_Advanced-Features.md +++ b/docs/User-Guide_Advanced-Features.md @@ -130,7 +130,7 @@ After your system boots up it will always remain as is. If you want to make any Changes inside this will be preserved. -### How to run Docker? (outdated) +### How to run Docker? Preinstallation requirements: From cf5b374fa0e76ccdede69c1ee1b5e8ad5b10d116 Mon Sep 17 00:00:00 2001 From: Bruno Verachten Date: Fri, 6 Nov 2020 10:37:13 +0100 Subject: [PATCH 4/4] Back to outdated for freeze --- docs/User-Guide_Advanced-Features.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/User-Guide_Advanced-Features.md b/docs/User-Guide_Advanced-Features.md index f9eeb104..3b349faa 100644 --- a/docs/User-Guide_Advanced-Features.md +++ b/docs/User-Guide_Advanced-Features.md @@ -114,7 +114,7 @@ Check which wireless stations / routers are in range iwlist wlan0 scan | grep ESSID -#### How to freeze your filesystem? +#### How to freeze your filesystem? (outdated) In certain situations it is desirable to have a virtual read-only root filesystem. This prevents any changes from occurring on the root filesystem that may alter system behavior and it allows a simple reboot to restore a system to its clean state.