From 4e25c21e45898f99b456e35ae22235811b977af5 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Fri, 20 May 2022 20:43:51 -0400 Subject: [PATCH] modified: content/2022-05-20-ubuntu-22-04-letsencrypt-hints.rst --- ...2-05-20-ubuntu-22-04-letsencrypt-hints.rst | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/content/2022-05-20-ubuntu-22-04-letsencrypt-hints.rst b/content/2022-05-20-ubuntu-22-04-letsencrypt-hints.rst index e84506c..7501c55 100644 --- a/content/2022-05-20-ubuntu-22-04-letsencrypt-hints.rst +++ b/content/2022-05-20-ubuntu-22-04-letsencrypt-hints.rst @@ -1,8 +1,8 @@ -Ubuntu 22.04 Letsencrypt Hints +Ubuntu 22.04 Letsencrypt Docker Hints ################################################################ :author: Russell Ballestrini -:slug: ubuntu-22-04-letsencrypt-hints +:slug: ubuntu-22-04-letsencrypt-docker-hints :date: 2022-05-20 20:10 :tags: Code, DevOps :status: published @@ -60,3 +60,27 @@ So the key is the ``-v`` mounts, I needed one for my ``webroot`` of ``/www`` & o This is different or not assumed in the official guide notes. +Additionally on Ubuntu 22.04 LTS in Linode, I was not any to use the ``-v`` mounts until I ran these commands: + +.. code-block:: bash + + sudo su - root + + mkdir /sys/fs/cgroup/systemd + mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd + +The mount command never persists across reboots so you will want the following ``/etc/fstab`` entry: + +Brian Amedro ended up modifying grub to avoid loading the certain systemd subsystem which were found to cause us the trouble: + +https://github.com/docker/for-linux/issues/219#issuecomment-817318014 + +For now i will place the ``mkdir`` & ``mount`` commands into the renew script since the fstab solution doesn't work + +because the directory doesn't exist, gets deleted on each reboot so it isn't present during boot mount time. + +/etc/fstab + +.. code-block:: bash + + cgroup /sys/fs/cgroup/systemd cgroup defaults