How To Install amazon-ecr-credential-helper on Debian 10

Learn how to install amazon-ecr-credential-helper on Debian 10 with this tutorial. amazon-ecr-credential-helper is Amazon ECR Credential Helper for Docker

Introduction

In this tutorial we learn how to install amazon-ecr-credential-helper on Debian 10.

What is amazon-ecr-credential-helper

amazon-ecr-credential-helper is:

A Docker credential helper to automatically manage credentials for Amazon ECR.

Once configured, the Amazon ECR Credential Helper lets you “docker pull” and “docker push” container images from Amazon ECR without running “docker login”.

Amazon ECR is a container registry and requires authentication for pushing and pulling images. You can use the AWS CLI or the AWS SDK to obtain a time-limited authentication token. This credential helper automatically manages obtaining and refreshing authentication tokens when using the Docker CLI.

For more information about Amazon ECR and how to use it, see the documentation at https://docs.aws.amazon.com/AmazonECR/latest/userguide/.

There are three methods to install amazon-ecr-credential-helper on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install amazon-ecr-credential-helper Using apt-get

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

sudo apt-get update

After updating apt database, We can install amazon-ecr-credential-helper using apt-get by running the following command:

sudo apt-get -y install amazon-ecr-credential-helper

Install amazon-ecr-credential-helper Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install amazon-ecr-credential-helper using apt by running the following command:

sudo apt -y install amazon-ecr-credential-helper

Install amazon-ecr-credential-helper 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install amazon-ecr-credential-helper using aptitude by running the following command:

sudo aptitude -y install amazon-ecr-credential-helper

How To Uninstall amazon-ecr-credential-helper on Debian 10

To uninstall only the amazon-ecr-credential-helper package we can use the following command:

sudo apt-get remove amazon-ecr-credential-helper

Uninstall amazon-ecr-credential-helper And Its Dependencies

To uninstall amazon-ecr-credential-helper and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove amazon-ecr-credential-helper

Remove amazon-ecr-credential-helper Configurations and Data

To remove amazon-ecr-credential-helper configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge amazon-ecr-credential-helper

Remove amazon-ecr-credential-helper configuration, data, and all of its dependencies

We can use the following command to remove amazon-ecr-credential-helper configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge amazon-ecr-credential-helper

Dependencies

amazon-ecr-credential-helper have the following dependencies:

References

Summary

In this tutorial we learn how to install amazon-ecr-credential-helper package on Debian 10 using different package management tools: apt, apt-get and aptitude.