I’ve recently upgraded to Kali 2 2016.2 and decided to run some local web apps to exercise exploiting the MEAN stack. To make things as quick and simple as possible, I decided to run these web apps in Docker.
To install Docker in Kali, these were the steps I followed:
Create a backports file and add the entry for Debian Wheezy:
echo 'deb http://http.debian.net/debian wheezy-backports main' > /etc/apt/sources.list.d/backports.list && apt-get update
Install ca-certificates and allow APT to operate via https:
apt-get install apt-transport-https ca-certificates
Add the appropriate GPG key:
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Add the appropriate Docker source entry:
echo 'deb https://apt.dockerproject.org/repo debian-wheezy main' > /etc/apt/sources.list.d/docker.list && apt-get update
Install Docker and start its service:
apt-get install docker-engine && service docker start
Verify that Docker is working:
docker run hello-world
That’s it, Docker should now be up and running on Kali Linux.