Repositories
3 minute read
Summary
Trustgrid provides a fully managed private container registry for each customer account. This allows customers to deploy containerized applications securely to their Trustgrid node appliances.
Container Namespace
Each customer is isolated to their own container namespace that is listed at the bottom of the Repositories page.
To push a container to your private registry it must be named with your namespace as a prefix when tagged.
List View
Uploaded container images may be viewed by navigating to Repositories in the portal.
From this view you can se all containers uploaded to your namespace.
Container Repository View
Each repository can be managed. Clicking into a container will show its uploaded tags and digests, as well as the URI that can be used to pull the container.
Deleting Container Repositories
Next to each container repository name is a box that can be selected. This allows deleting the entire repository and all its tags with a single action.
- Select the desired container repository.
- From the Actions dropdown select Delete.
- When prompted enter the repository name and click Confirm.
Deleting Specific Container Tags
- Navigate into the desired repository.
- Select the desired tag version.
- From the Actions dropdown select Delete.
- When prompted enter the tag name and click Confirm.
Authentication
Docker Login
In order to push to or pull containers from the private registry, your local docker client must first authenticate with your credentials.
To authenticate with the registry, use the command provided in the Docker Login section at the bottom of the repositories page.
Use the copy button to copy the docker login command and paste it into your terminal to authenticate your docker client. This will cache your credentials locally for approximately 24 hours.
Node Container Authentication
Trustgrid node appliances authenticate automatically with the Trustgrid container registry and can pull any image uploaded to the registry. All communication between the node appliance and the registry occurs using the Trustgrid control plane networks and ports
Example Usage
In the below example we will show how to pull down a container image (Alpine Linux) from the public hub.docker.com registry and then push it to the Trustgrid private registry under our namespace.
- First pull the Alpine image from Docker Hub with the command
docker pull alpine
.Note the tag is automatically set tolatest
by Docker. If desired you can manually specify a specific tag to get a specific version. - Tag the image with your namespace prefix.
docker tag alpine:latest docker.trustgrid.io/namespace.trustgrid.io/alpine:latest
make sure you replacenamespace.trustgrid.io
with your actual namespace. - If you haven’t already, Authenticate your Docker client with the Trustgrid registry using the Docker login command provided on the Repositories page
- Push the tagged image to the private registry.
docker push docker.trustgrid.io/namespace.trustgrid.io/alpine:latest
- Back on the Trustgrid portal, navigate to Repositories and you should see the pushed image listed.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.