Configuring Docker to work with a SourceCraft registry
-
Create a personal access token (PAT).
-
If you do not have Docker yet, install it.
-
Run this command:
echo <personal_access_token>|docker login \ --username iam \ --password-stdin \ pkg.sourcecraft.techWhere:
<personal_access_token>: Contents of the previously obtained personal access token.pkg.sourcecraft.tech: Endpoint that Docker will access when working with the registry. If it not specified, the request will be sent to Docker Hub as the default service.
To push your Docker image to a registry, run this command:
docker push pkg.sourcecraft.tech/cr/<organization_slug>/<registry_ID>/<image_name>:<tag>
To pull a Docker image from a registry, run this command:
docker pull pkg.sourcecraft.tech/cr/<organization_slug>/<registry_ID>/<image_name>:<tag>
Tip
You can find the organization slug and registry ID on the registry page in the SourceCraft UI.
See also
- SourceCraft resource relationships
- Creating a registry in SourceCraft
- Connecting a registry to a SourceCraft repository
- Configuring Maven to work with a SourceCraft registry
- Configuring npm to work with a SourceCraft registry
- Configuring NuGet to work with a SourceCraft registry
- Configuring PyPI to work with the SourceCraft registry
Was the article helpful?
Previous