docker-registry command not found

In this troubleshooting guide we learn how to fix docker-registry command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

docker-registry: command not found

or when using sudo you get the following error message

sudo: docker-registry: command not found

Solutions to docker-registry: command not found

How To Fix docker-registry: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu docker-registry is provided by docker-registry package.

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

To fix this problem, we can install more using the command below.

sudo apt-get -y install docker-registry

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install docker-registry.

sudo apt -y install docker-registry

Or if you have aptitude installed you can use the following command.

sudo aptitude install docker-registry

Summary

In this tutorial we learn how to fix docker-registry command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.