--- /dev/null
+containerization platform
--- /dev/null
+#!/usr/bin/env sh
+#
+# Test if docker is installed system-wide.
+#
+
+# Parameters
+SHARE="$1"
+
+# Include basic functions
+. $SHARE/trashman/functions || exit 1
+. $SHARE/trashman/debian || exit 1
+
+if [ -e "/etc/apt/trusted.gpg.d/docker.gpg" ] && \
+ [ -e "/etc/apt/sources.list.d/docker.list" ] && \
+ __trashman_apt_check docker-ce; then
+ exit 0
+fi
+
+if [ ! -e "/etc/apt/trusted.gpg.d/docker.gpg" ] && \
+ [ ! -e "/etc/apt/sources.list.d/docker.list" ] && \
+ ! __trashman_apt_check docker-ce; then
+ exit 1
+fi
+
+exit 2
--- /dev/null
+#!/usr/bin/env sh
+#
+# Install docker system-wide.
+#
+
+# Parameters
+SHARE="$1"
+
+# Include basic functions
+. $SHARE/trashman/functions || exit 1
+. $SHARE/trashman/debian || exit 1
+
+DISTRO="`__trashman_distro`"
+ARCH="`__trashman_debian_arch`"
+RELEASE="`__trashman_distro_release`"
+
+# Install requirements
+apt-get update && __trashman_apt_install apt-transport-https
+
+# Install pubkey
+__trashman_install_apt_key $SHARE/docker/unix/linux/debian/pubkey.gpg docker.gpg
+
+# Create sources.list entry
+echo "deb [arch=$ARCH] https://download.docker.com/linux/$DISTRO $RELEASE stable" > /etc/apt/sources.list.d/docker.list
+
+# Update and install
+apt-get update && __trashman_apt_install docker-ce || exit 1
+
+# Additional info
+__trashman_echo "Docker sucessfully installed."
+__trashman_echo "You might want to add your regular user into the 'docker' group"
--- /dev/null
+#!/usr/bin/env sh
+#
+# Remove docker system-wide.
+#
+
+# Remove docker
+rm -rf /etc/apt/trusted.gpg.d/docker.gpg
+rm -f /etc/apt/sources.list.d/docker.list
+apt-get remove docker-ce -y && apt-get autoremove
--- /dev/null
+#!/usr/bin/env sh
+#
+# Test if docker is running correctly.
+#
+
+# Parameters
+SHARE="$1"
+
+# Include basic functions
+. $SHARE/trashman/functions || exit 1
+
+# Run hello-world test program
+__trashman_echo "Running docker helll-world image..."
+docker run hello-world
+status="$?"
+
+# Test exit status
+if [ "$status" != "0" ]; then
+ exit 1
+fi
+
+# Success
+exit 0
--- /dev/null
+debian
\ No newline at end of file