Script to install Docker in Debian

Here is a little script that will install docker for you from their official repositories without many headaches.

WARNING: This script was designed with new installations in mind, if you already have docker installed from the Debian repositories, uninstall it first to avoid conflicts.

To use the script just copy the following code to a .sh file and execute it as root:

#Docker installation script for Debian by KALRONG

apt-get update
apt-get -y upgrade
apt-get -y dist-upgrade
apt-get -y install screen apt-transport-https ca-certificates gnupg2
apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
echo "deb debian-jessie main" > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get -y install docker-engine

As  you can see is not very complex hehe hope it helps you.


Best regards and thanks for your visit!

This entry was posted in docker. Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.