How To Install docker-registry on Kali Linux

In this tutorial we learn how to install docker-registry on Kali Linux. docker-registry is Docker toolset to pack, ship, store, and deliver content

Introduction

In this tutorial we learn how to install docker-registry on Kali Linux.

What is docker-registry

docker-registry is:

The Docker toolset to pack, ship, store, and deliver content.

The Docker Registry 2.0 implementation contained in this package is for storing and distributing Docker images. It supersedes the docker/docker-registry project with a new API design, focused around security and performance.

This project should provide an implementation to a V2 API for use in the Docker core project. The API should be embeddable and simplify the process of securely pulling and pushing content from docker daemons.

The new registry implementation provides the following benefits:

  • faster push and pull
  • new, more efficient implementation
  • simplified deployment
  • pluggable storage backend
  • webhook notifications

There are three methods to install docker-registry 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 docker-registry Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install docker-registry

Install docker-registry Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install docker-registry

Install docker-registry Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux 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 docker-registry using aptitude by running the following command:

sudo aptitude -y install docker-registry

How To Uninstall docker-registry on Kali Linux

To uninstall only the docker-registry package we can use the following command:

sudo apt-get remove docker-registry

Uninstall docker-registry And Its Dependencies

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

sudo apt-get -y autoremove docker-registry

Remove docker-registry Configurations and Data

To remove docker-registry configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge docker-registry

Remove docker-registry configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge docker-registry

Dependencies

docker-registry have the following dependencies:

References

Summary

In this tutorial we learn how to install docker-registry package on Kali Linux using different package management tools: apt, apt-get and aptitude.