In order to get started with the DigitalOcean Docker Registry, you can follow the steps here.
- Make sure that you have Docker installed:
- Install the
doctl command-line tool:
First create a Docker Registry:
- Visit the registry page under Images.
- Enter a name for your registry. This name must be globally unique.
- You will be advised if you need to enable a Spaces subscription first, which you can do by visiting the Spaces area of the control panel.
You could also create a registry via your command line with the following command:
- doctl registry create your-registry-name
With that, your registry will be ready and you will be able to push new Docker images.
Push to Your DigitalOcean Registry
In order to push an image, you need to first login to your DigitalOcean Docker Registry:
After that tag your image with the fully qualified destination path:
- docker tag your-image-name registry.digitalocean.com/your-registry-name/your-image-name
Finally by using the
docker push command to upload your image:
- docker push registry.digitalocean.com/your-registry-name/your-image-name
For more information on how to use the DigitalOcean Docker Registry, make sure to check the documentation here:
Hope that this helps!
Docker is an application that simplifies the process of managing application processes in containers. In this tutorial, you'll install and use Docker Community Edition (CE) on Ubuntu 18.04. You'll install Docker itself, work with containers and images, and push an image to a Docker Repository.