# install-docker.sh #!/bin/sh set -o errexit set -o nounset IFS=$(printf '\n\t') apt remove --yes docker docker-engine docker.io containerd runc || true apt update apt --yes --no-install-recommends install apt-transport-https ca-certificates wget --quiet --output-document=- https://download.docker.com/linux/ubuntu/gpg | apt-key add - add-apt-repository --yes "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release --codename --short) stable" apt update apt --yes --no-install-recommends install docker-ce docker-ce-cli containerd.io systemctl enable docker printf '\nDocker installed successfully\n\n'