summaryrefslogtreecommitdiff
path: root/www/posts/docker
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2022-03-07 21:18:44 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2022-03-07 21:18:44 +0000
commit7939805687e75f8a46cd6c43a80e9fb3db88da81 (patch)
treea303e328e48b42eb18917efb7d9a7f23aafb6715 /www/posts/docker
parent33183104e21ff67b27a67d9e3004ca6d4b9632f9 (diff)
Add Installing Docker on Arch Linux
Diffstat (limited to 'www/posts/docker')
-rw-r--r--www/posts/docker/2022-03-07/installing-docker-on-arch-linux/index.html27
-rw-r--r--www/posts/docker/atom.xml19
-rw-r--r--www/posts/docker/index.html25
3 files changed, 71 insertions, 0 deletions
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 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Installing Docker on Arch Linux</title>
+ <link rel="shortcut icon" href="/images/favicon.png">
+ <link rel="stylesheet" href="/css/site.css">
+ <link href="/posts/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts"/>
+ <link href="/posts/arch/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Arch"/>
+ <link href="/posts/gemini/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Gemini"/>
+ <link href="/posts/jigsaw/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Jigsaw"/>
+ <link href="/posts/laravel/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Laravel"/>
+ <link href="/posts/linux/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Linux"/>
+ <link href="/posts/markdown/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Markdown"/>
+ <link href="/posts/netlify/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Netlify"/>
+ <link href="/posts/nextcloud/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Nextcloud"/>
+ <link href="/posts/php/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About PHP"/>
+ </head>
+ <body>
+ <section><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></section>
+ <script defer src="/js/highlight.min.js"></script>
+ <script defer src="/js/site.js"></script>
+ </body>
+</html>
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 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+ <title type="text">The Home of David T. Sadler - All Posts About Docker</title>
+ <id>https://davidtsadler.com/posts/docker/atom.xml</id>
+ <link rel="alternate" type="text/html" href="https://davidtsadler.com/posts/docker/"/>
+ <link rel="self" type="application/atom+xml" href="https://davidtsadler.com/posts/docker/atom.xml"/>
+ <updated>2022-03-07T12:00:00Z</updated>
+ <entry>
+ <title type="text">Installing Docker on Arch Linux</title>
+ <id>https://davidtsadler.com/posts/docker/2022-03-07/installing-docker-on-arch-linux/</id>
+ <link rel="alternate" type="text/html" href="https://davidtsadler.com/posts/docker/2022-03-07/installing-docker-on-arch-linux/"/>
+ <author><name>David T. Sadler.</name></author>
+ <published>2022-03-07T12:00:00Z</published>
+ <updated>2022-03-07T12:00:00Z</updated>
+ <content type="html">&lt;h1&gt;Installing Docker on Arch Linux&lt;/h1&gt;&lt;blockquote&gt;Mon 7th March 2022 By David T. Sadler.&lt;/blockquote&gt;&lt;h2&gt;Installing Docker&lt;/h2&gt;&lt;p&gt;Docker is installed via pacman.&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;shell&quot;&gt;$ sudo pacman -S docker&lt;/code&gt;&lt;/pre&gt;&lt;h2&gt;Starting Docker Engine&lt;/h2&gt;&lt;p&gt;Start the Docker daemon which provides the Docker Engine. This process serves the Docker API and manages Docker containers.&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;shell&quot;&gt;$ sudo systemctl start docker.service&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you want Docker Engine to automatically start when you system boots issue the below command.&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;shell&quot;&gt;$ sudo systemctl enable docker.service&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Verify that Docker Engine is running.&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;shell&quot;&gt;$ docker info&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Verify that you can run containers. The below will download the latest Arch Linux image and use it to run a &amp;quot;Hello World&amp;quot; bash script in the container.&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;shell&quot;&gt;$ docker run -it --rm archlinux bash -c &amp;quot;echo Hello World&amp;quot;&lt;/code&gt;&lt;/pre&gt;&lt;h2&gt;Problems &lt;/h2&gt;&lt;p&gt;You may get an error when running docker info.&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;shell&quot;&gt;$ 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&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The issue is that the user you&amp;#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.&lt;/p&gt;&lt;h3&gt;Links&lt;/h3&gt;&lt;a href=&quot;/posts/docker/&quot;&gt;Docker - Read More Posts.&lt;/a&gt;&lt;p&gt;I don&amp;#039;t have comments as I don&amp;#039;t want to manage them. You can however contact me at the below address if you want to.&lt;/p&gt;&lt;a href=&quot;mailto:david@davidtsadler.com&quot;&gt;Email david@davidtsadler.com&lt;/a&gt;&lt;h3&gt;License&lt;/h3&gt;&lt;a href=&quot;https://creativecommons.org/licenses/by-sa/4.0/&quot;&gt;The contents of this site is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.&lt;/a&gt;&lt;p&gt;Copyright © 2021 David T. Sadler.&lt;/p&gt;&lt;a href=&quot;/&quot;&gt;Return to Homepage.&lt;/a&gt;</content>
+</entry>
+</feed> \ 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 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>The Home of David T. Sadler - All Posts About Docker</title>
+ <link rel="shortcut icon" href="/images/favicon.png">
+ <link rel="stylesheet" href="/css/site.css">
+ <link href="/posts/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts"/>
+ <link href="/posts/arch/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Arch"/>
+ <link href="/posts/gemini/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Gemini"/>
+ <link href="/posts/jigsaw/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Jigsaw"/>
+ <link href="/posts/laravel/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Laravel"/>
+ <link href="/posts/linux/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Linux"/>
+ <link href="/posts/markdown/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Markdown"/>
+ <link href="/posts/netlify/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Netlify"/>
+ <link href="/posts/nextcloud/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About Nextcloud"/>
+ <link href="/posts/php/atom.xml" type="application/atom+xml" rel="alternate" title="The Home of David T. Sadler - All Posts About PHP"/>
+ </head>
+ <body>
+ <section><h1>The Home of David T. Sadler - All Posts About Docker</h1><a href="/posts/docker/2022-03-07/installing-docker-on-arch-linux/">2022-03-07 - Installing Docker on Arch Linux</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></section>
+ <script defer src="/js/highlight.min.js"></script>
+ <script defer src="/js/site.js"></script>
+ </body>
+</html>