How To Install docker2aci on Kali Linux

In this tutorial we learn how to install docker2aci on Kali Linux. docker2aci is CLI tool to convert Docker images to ACIs

Introduction

In this tutorial we learn how to install docker2aci on Kali Linux.

What is docker2aci

docker2aci is a CLI binary that converts Docker images to ACI (https://github.com/appc/spec/blob/master/SPEC.md#app-container-image). It takes as input either a file generated by “docker save” or a Docker registry URL. It gets all the layers of a Docker image and squashes them into an ACI image. Optionally, it can generate one ACI for each layer, setting the correct dependencies.

There are three ways to install docker2aci on Kali Linux . We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install docker2aci Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install docker2aci using apt-get by running the following command:

sudo apt-get -y install docker2aci

Install docker2aci Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install docker2aci using apt by running the following command:

sudo apt -y install docker2aci

Install docker2aci Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install docker2aci using aptitude by running the following command:

sudo aptitude -y install docker2aci

How To Uninstall docker2aci on Kali Linux

To uninstall only the docker2aci package we can use the following command:

sudo apt-get remove docker2aci

Uninstall docker2aci And Its Dependencies

To uninstall docker2aci and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove docker2aci

Remove docker2aci Configurations and Data

To remove docker2aci configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge docker2aci

Remove docker2aci configuration, data, and all of its dependencies

We can use the following command to remove docker2aci configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge docker2aci

References

Summary

In this tutorial we learn how to install docker2aci using different package management tools like apt, apt-get and aptitude.