diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2022-03-07 21:18:44 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2022-03-07 21:18:44 +0000 |
| commit | 7939805687e75f8a46cd6c43a80e9fb3db88da81 (patch) | |
| tree | a303e328e48b42eb18917efb7d9a7f23aafb6715 /gemini | |
| parent | 33183104e21ff67b27a67d9e3004ca6d4b9632f9 (diff) | |
Add Installing Docker on Arch Linux
Diffstat (limited to 'gemini')
| -rw-r--r-- | gemini/index.gmi | 2 | ||||
| -rw-r--r-- | gemini/posts/docker/2022-03-07/installing-docker-on-arch-linux/index.gmi | 65 | ||||
| -rw-r--r-- | gemini/posts/docker/index.gmi | 11 |
3 files changed, 78 insertions, 0 deletions
diff --git a/gemini/index.gmi b/gemini/index.gmi index 4cb718d..621b804 100644 --- a/gemini/index.gmi +++ b/gemini/index.gmi @@ -4,6 +4,7 @@ Hello and welcome to my little bit of the internet where I occasionally write ab ## Latest Posts +=> /posts/docker/2022-03-07/installing-docker-on-arch-linux/ 2022-03-07 - Installing Docker on Arch Linux => /posts/php/2021-07-08/http-authorization-missing-from-global-server-variable/ 2021-07-08 - HTTP_AUTHORIZATION Missing From Global $_SERVER Variable => /posts/git/2021-06-13/backing-up-a-git-repository/ 2021-06-13 - Backing Up a Git Repository => /posts/linux/2021-06-05/xrandr-failed-to-get-size-of-gamma-for-output-default/ 2021-06-05 - Xrandr: Failed to Get Size of Gamma for Output Default @@ -34,6 +35,7 @@ Hello and welcome to my little bit of the internet where I occasionally write ab ## Tags => /posts/arch/ Arch +=> /posts/docker/ Docker => /posts/gemini/ Gemini => /posts/git/ Git => /posts/jigsaw/ Jigsaw diff --git a/gemini/posts/docker/2022-03-07/installing-docker-on-arch-linux/index.gmi b/gemini/posts/docker/2022-03-07/installing-docker-on-arch-linux/index.gmi new file mode 100644 index 0000000..88bd783 --- /dev/null +++ b/gemini/posts/docker/2022-03-07/installing-docker-on-arch-linux/index.gmi @@ -0,0 +1,65 @@ +# Installing Docker on Arch Linux + +> Mon 7th March 2022 By David T. Sadler. + +## Installing Docker + +Docker is installed via pacman. + +```shell +$ sudo pacman -S docker +``` + +## Starting Docker Engine + +Start the Docker daemon which provides the Docker Engine. This process serves the Docker API and manages Docker containers. + +```shell +$ sudo systemctl start docker.service +``` + +If you want Docker Engine to automatically start when you system boots issue the below command. + +```shell +$ sudo systemctl enable docker.service +``` + +Verify that Docker Engine is running. + +```shell +$ docker info +``` + +Verify that you can run containers. The below will download the latest Arch Linux image and use it to run a "Hello World" bash script in the container. + +```shell +$ docker run -it --rm archlinux bash -c "echo Hello World" +``` + +## Problems + +You may get an error when running docker info. + +```shell +$ docker info + +Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/json: dial unix /var/run/docker.sock: connect: permission denied +``` + +The issue is that the user you're running the docker command as is not a member of the docker group. Therefore you can either run the command via sudo or add your user to the docker user group, re-login, and restart docker.service. + +### Links + +=> /posts/docker/ Docker - Read More Posts. + +I don't have comments as I don't want to manage them. You can however contact me at the below address if you want to. + +=> mailto:david@davidtsadler.com Email david@davidtsadler.com + +### License + +=> https://creativecommons.org/licenses/by-sa/4.0/ The contents of this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. + +Copyright © 2021 David T. Sadler. + +=> / Return to Homepage. diff --git a/gemini/posts/docker/index.gmi b/gemini/posts/docker/index.gmi new file mode 100644 index 0000000..143065f --- /dev/null +++ b/gemini/posts/docker/index.gmi @@ -0,0 +1,11 @@ +# The Home of David T. Sadler - All Posts About Docker + +=> /posts/docker/2022-03-07/installing-docker-on-arch-linux/ 2022-03-07 - Installing Docker on Arch Linux + +### License + +=> https://creativecommons.org/licenses/by-sa/4.0/ The contents of this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. + +Copyright © 2021 David T. Sadler. + +=> / Return to Homepage. |
