From 7939805687e75f8a46cd6c43a80e9fb3db88da81 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Mon, 7 Mar 2022 21:18:44 +0000 Subject: Add Installing Docker on Arch Linux --- .../installing-docker-on-arch-linux/index.html | 27 ++++++++++++++++++++++ www/posts/docker/atom.xml | 19 +++++++++++++++ www/posts/docker/index.html | 25 ++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 www/posts/docker/2022-03-07/installing-docker-on-arch-linux/index.html create mode 100644 www/posts/docker/atom.xml create mode 100644 www/posts/docker/index.html (limited to 'www/posts/docker') diff --git a/www/posts/docker/2022-03-07/installing-docker-on-arch-linux/index.html b/www/posts/docker/2022-03-07/installing-docker-on-arch-linux/index.html new file mode 100644 index 0000000..54b996b --- /dev/null +++ b/www/posts/docker/2022-03-07/installing-docker-on-arch-linux/index.html @@ -0,0 +1,27 @@ + + + + + + Installing Docker on Arch Linux + + + + + + + + + + + + + + +

Installing Docker on Arch Linux

Mon 7th March 2022 By David T. Sadler.

Installing Docker

Docker is installed via pacman.

$ 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.

$ sudo systemctl start docker.service

If you want Docker Engine to automatically start when you system boots issue the below command.

$ sudo systemctl enable docker.service

Verify that Docker Engine is running.

$ 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.

$ docker run -it --rm archlinux bash -c "echo Hello World"

Problems

You may get an error when running docker info.

$ 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

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.

Email david@davidtsadler.com

License

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/www/posts/docker/atom.xml b/www/posts/docker/atom.xml new file mode 100644 index 0000000..50901ee --- /dev/null +++ b/www/posts/docker/atom.xml @@ -0,0 +1,19 @@ + + + The Home of David T. Sadler - All Posts About Docker + https://davidtsadler.com/posts/docker/atom.xml + + + 2022-03-07T12:00:00Z + + Installing Docker on Arch Linux + https://davidtsadler.com/posts/docker/2022-03-07/installing-docker-on-arch-linux/ + + David T. Sadler. + 2022-03-07T12:00:00Z + 2022-03-07T12:00:00Z + <h1>Installing Docker on Arch Linux</h1><blockquote>Mon 7th March 2022 By David T. Sadler.</blockquote><h2>Installing Docker</h2><p>Docker is installed via pacman.</p><pre><code class="shell">$ sudo pacman -S docker</code></pre><h2>Starting Docker Engine</h2><p>Start the Docker daemon which provides the Docker Engine. This process serves the Docker API and manages Docker containers.</p><pre><code class="shell">$ sudo systemctl start docker.service</code></pre><p>If you want Docker Engine to automatically start when you system boots issue the below command.</p><pre><code class="shell">$ sudo systemctl enable docker.service</code></pre><p>Verify that Docker Engine is running.</p><pre><code class="shell">$ docker info</code></pre><p>Verify that you can run containers. The below will download the latest Arch Linux image and use it to run a &quot;Hello World&quot; bash script in the container.</p><pre><code class="shell">$ docker run -it --rm archlinux bash -c &quot;echo Hello World&quot;</code></pre><h2>Problems </h2><p>You may get an error when running docker info.</p><pre><code class="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</code></pre><p>The issue is that the user you&#039;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.</p><h3>Links</h3><a href="/posts/docker/">Docker - Read More Posts.</a><p>I don&#039;t have comments as I don&#039;t want to manage them. You can however contact me at the below address if you want to.</p><a href="mailto:david@davidtsadler.com">Email david@davidtsadler.com</a><h3>License</h3><a href="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.</a><p>Copyright © 2021 David T. Sadler.</p><a href="/">Return to Homepage.</a> + + \ No newline at end of file diff --git a/www/posts/docker/index.html b/www/posts/docker/index.html new file mode 100644 index 0000000..7d10194 --- /dev/null +++ b/www/posts/docker/index.html @@ -0,0 +1,25 @@ + + + + + + The Home of David T. Sadler - All Posts About Docker + + + + + + + + + + + + + + +

The Home of David T. Sadler - All Posts About Docker

2022-03-07 - Installing Docker on Arch Linux

License

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.
+ + + + -- cgit v1.2.3-13-gbd6f