How To Install amazon-ecr-credential-helper.x86_64 on Amazon Linux 2

In this tutorial we learn how to install amazon-ecr-credential-helper.x86_64 in Amazon Linux 2. amazon-ecr-credential-helper.x86_64 is Amazon ECR Docker Credential Helper

Introduction

In this tutorial we learn how to install amazon-ecr-credential-helper.x86_64 on Amazon Linux 2.

What is amazon-ecr-credential-helper.x86_64

The Amazon ECR Docker Credential Helper is a credential helper for the Docker daemon that makes it easier to use Amazon Elastic Container Registry.

We can use yum to install amazon-ecr-credential-helper.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install amazon-ecr-credential-helper.x86_64.

Install amazon-ecr-credential-helper.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install amazon-ecr-credential-helper.x86_64

How To Uninstall amazon-ecr-credential-helper.x86_64 on Amazon Linux 2

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

sudo yum remove amazon-ecr-credential-helper.x86_64

amazon-ecr-credential-helper.x86_64 Package Contents on Amazon Linux 2

/usr/bin/docker-credential-ecr-login
/usr/share/man/man1/docker-credential-ecr-login.1.gz

References

Summary

In this tutorial we learn how to install amazon-ecr-credential-helper.x86_64 on Amazon Linux 2 using yum.