[arch-dev-public] Fwd: [arch-commits] Commit in (9 files)

Allan McRae allan at archlinux.org
Wed Nov 27 05:29:15 EST 2013


Please don't do this...   11 line output in post_install.   If you
REALLY need this, use a single line pointing to the wiki page.

Allan


-------- Original Message --------
Subject: [arch-commits] Commit in  (9 files)
Date: Wed, 27 Nov 2013 11:14:00 +0100 (CET)
From: Alexander Rødseth <arodseth at nymeria.archlinux.org>
Reply-To: Arch Linux packaging commits <arch-commits at archlinux.org>
To: arch-commits at archlinux.org

<snip>

--- lxc-docker/trunk/docker.install	                        (rev 0)
+++ lxc-docker/trunk/docker.install	2013-11-27 10:14:00 UTC (rev 101542)
@@ -0,0 +1,37 @@
+# Contributor: Nicolas Dudebout <nicolas.dudebout at gatech.edu>
+
+post_install() {
+  grep -q '^docker:' /etc/group || groupadd --system docker
+  systemctl daemon-reload
+  echo 'To make Docker fully functional, consider performing the
following actions:'
+  echo '  + Start the docker daemon:'
+  echo '      $ sudo systemctl start docker'
+  echo '  + (OPTIONAL) Start the docker daemon at boot:'
+  echo '      $ sudo systemctl enable docker'
+  echo '  + Add your user to the docker group to run the docker client
without sudo:'
+  echo '      $ sudo usermod -a -G docker <username>'
+  echo '    Login again for the change to take effect or run the
following command'
+  echo '    for a change affecting only the current shell:'
+  echo '      $ newgrp docker'
+  echo '  + Enable IPv4 forwarding to allow internet connections inside
the containers.'
+  echo '    See /etc/sysctl.d/docker.conf for WARNING and instructions.'
+}
+


More information about the arch-dev-public mailing list