summarylogtreecommitdiffstats
path: root/docker.install
diff options
context:
space:
mode:
authorIdo Rosen2013-12-05 13:17:34 -0500
committerIdo Rosen2013-12-05 13:17:34 -0500
commitb6fdceb499a0a7404d9560c91f9f44526eae695c (patch)
tree3dfd735480f07dab2d7553b0e8d2923712210ff7 /docker.install
downloadaur-b6fdceb499a0a7404d9560c91f9f44526eae695c.tar.gz
Added docker-git, which replaces lxc-docker-git now that docker is in [community].
Diffstat (limited to 'docker.install')
-rw-r--r--docker.install33
1 files changed, 33 insertions, 0 deletions
diff --git a/docker.install b/docker.install
new file mode 100644
index 00000000000..1ad012a398b
--- /dev/null
+++ b/docker.install
@@ -0,0 +1,33 @@
+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."
+}
+
+pre_upgrade() {
+ systemctl stop docker
+}
+
+post_upgrade() {
+ systemctl daemon-reload
+}
+
+pre_remove() {
+ systemctl stop docker
+ grep -q '^docker:' /etc/group && groupdel docker
+}
+
+post_remove() {
+ systemctl daemon-reload
+}