Kali Linux Docker Image

  1. Kali Linux Docker Image
  2. What Is Docker
  3. Run Kali Linux Docker Image

Kali Linux – Working with Nmap. The first step to working with nmap is to log into the Kali Linux machine and if desired, start a graphical session (This first article in this series installed Kali Linux with the Enlightenment Desktop Environment). Jun 09, 2016 # Kali Linux (Rolling) Docker Image # 2016 # # Build the image with: # $ docker build -t kali-rolling. # # Start a container for the first time from a built image with: # $ docker run -ti -name kali -h kali kali-rolling # # After the first run, start the image with: # $ docker start -ai kali: FROM kalilinux/kali-linux-docker: MAINTAINER Leon. The image keyword lets docker know what image we want to use to build our container: in this case I used 7.2.1-apache which will provide us php 7.2.1 together with the apache web server. Need another php version? You just need to choose from the many provided in the image page on dockerhub. Kali’s virtualization support includes the ability to reside inside Linux virtual machines, pre-built ISO images for VMware, VirtualBox, Hyper-V, and Vagrant alongside support for containerization platforms Docker and LXC. So, you can install Kali Linux in any standard platform that relies on virtualization without facing additional hassles.

For the latest information, please see our documentation on Docker

Last week we received an email from a fellow penetration tester, requesting official Kali Linux Docker images that he could use for his work. We bootstrapped a minimal Kali Linux 1.1.0a base and registered it under our Kali Linux Docker account. A few minutes later, said fellow pentester was up and running with Metasploit and the Top 10 Kali Linux tools on his Macbook Pro.

Docker is Awesome

The more we started looking into Docker and all of its features, the more we realized the endless possibilities of this technology - from helping us in our own internal Kali beta testing, to furthering the reach of Kali to foreign distributions and esoteric operating systems. The fact that you can run Docker on pretty much every operating system under the sun makes this feature extra sexy. The beauty in this process is that Kali is placed in a nice, neat container without polluting your guest filesystem. With this in place, you have full access to all the Kali packages on any and all systems that run Docker - which ends up being quite an expansive list.

Kali Docker Image Running on Fedora 21 and OSX 10.10 Guests

Kali linux docker image file

Figuring out how to use Docker was simple enough. This tutorial does a great job of getting you up and running and showing you the ropes.

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:

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.

Have fun with your Kali Docker images!

In our previous article, we have discussed about how to download the kali linux image file and how to install virtualbox. Now let’s get you started with the virtual machine.

Step 01 : Open Virtualbox

VirtualBox should open once it has installed. Now you should be greeted by the VirtualBox Manager


Step 02 : Create a new virtual machine

Since we will be creating a new virtual machine with Kali Linux, click New in the upper­left corner. This opens the Create Virtual Machine dialog shown below.

Give your machine a name and then select Linux from the Type drop­down menu. Finally, select Debian (64­bit) from the third drop­down menu (unless you are using the 32­bit version of Kali, in which case select the Debian 32­bit version).

Step 03 : Allocate system resources

Here, you need to select how much RAM you want to allocate to this new virtual machine.

The more RAM you give your virtual machine, the better and faster it will run, but you must also leave enough RAM for your host operating system and any other virtual machines you might want to run simultaneously. Your virtual machines will not use any RAM when you are not using them, but they will use hard drive space.

Click Next, and you’ll get to the Hard Disk screen. Choose Create Virtual Hard Disk and click Create.

In the next screen, you can decide whether you want the hard drive you are creating to be allocated dynamically or at a fixed size. If you choose Dynamically Allocated, the system will not take the entire maximum size you allocate for the virtual hard disk until you need it, saving more unused hard disk space for your host system. I suggest you select dynamically allocated.

Click Next, and you’ll choose the amount of hard drive space to allocate to the VM and the location of the VM

Kali Linux Docker Image

The default is 8GB. I usually find that to be a bit small and recommend that you allocate 20–25GB at a minimum. Remember, if you chose to dynamically allocate hard drive space, it won’t use the space until you need it, and expanding your hard drive after it has already been allocated can be tricky, so better to err on the high side. Click Create, and you’re ready to go!

Step 04 : Installing Kali on the VM


What Is Docker

At this point, you should see a screen like below.

Now you’ll need to install Kali. Note that on the left of the VirtualBox Manager, you should see an indication that Kali VM is powered off. Click the Start button (green arrow icon).

Run Kali Linux Docker Image

The VirtualBox Manager will then ask where to find the startup disk. You’ve already downloaded a disk image with the extension .iso, which should be in your Downloads folder. Click the folder icon to the right, navigate to the Downloads folder, and select the Kali image file

Then click Start. Congratulations, you’ve just installed Kali Linux on a virtual machine!

The following two tabs change content below.
Ruwantha Nissanka is a Professional Cyber Security Engineer from Sri lanka with having a demonstrated history of providing cyber security services for multiple organizations in Sri Lanka. He is a positive person who wants to believe the best in others and he likes to help, encourage people and make them feel good.
  • 4 ways to hide your identity using linux - January 18, 2021
  • How To Install Kali Linux in Virtualbox - December 31, 2020
  • Kali Linux : The OS That Hackers Use - December 31, 2020
  • How to monitor user activity in Linux with Acct - December 30, 2020
  • Debsecan : You will not miss another security update - December 28, 2020