Technology Blog

Download & Install Kali Linux 2.0 Docker Images

0

Kali Linux has released Kali Linux 2.0 Docker Images that allow users to run Kali Linux 2.0 penetration testing distro on any Linux platform. Using the Kali Linux Docker image, users will be able to run Kali Linux on other OSes, such as CentOS, Gentoo, Mac OS X, SUSE, Azure, and RackSpace.

The Kali Linux Docker image provides a minimal base install of the latest version of Kali Linux 2.x. Please note that there are no tools added to this image, hence you will need to install them manually.

kali-linux-docker-images-798x284

When Kali Linux Docker Image is used, Kali is placed in a nice, neat container without interfering the guest filesystem. Not only this, it enables full access to all the Kali packages on any and all systems that run Docker.

To install Kali Linux 2.0 Docker Image, run the following commands: (we assume you have docker installed on your system)


$ docker pull kalilinux/kali-linux-docker

Setting up a Kali Linux Docker Image

Obviously, to get this running, you need to install Docker. For Docker on OSX you can use brew, while for most other distributions, you can install it using your local package manager. Once installed and set up, it’s just a matter of pulling our image from the Docker repository:

$ docker pull kalilinux/kali-linux-docker
$ docker run -t -i kalilinux/kali-linux-docker /bin/bash
# apt-get install metasploit

Building Your Own Kali Linux Docker Image

If you want to build your own Kali images rather than use our pre-made ones, we’ve made it easy with the following script hosted on Kali Linux Docker on Github. These images are best built on a Linux system or any other OS that can debootstrap.

#!/bin/bash
# Install dependencies (debbootstrap)
sudo apt-get install debootstrap
# Fetch the latest Kali debootstrap script from git
curl "http://git.kali.org/gitweb/?p=packages/debootstrap.git;a=blob_plain;f=scripts/kali;hb=HEAD" > kali-debootstrap &&\
sudo debootstrap kali ./kali-root http://http.kali.org/kali ./kali-debootstrap &&\
# Import the Kali image into Docker
sudo tar -C kali-root -c . | sudo docker import - kalilinux/kali &&\
sudo rm -rf ./kali-root &&\
# Test the Kali Docker Image
docker run -t -i kalilinux/kali cat /etc/debian_version &&\
echo "Build OK" || echo "Build failed!"

You can download Docker image of Kali Linux 2.0 for 32-bit/64-bit Linux Systems from  here.