nsc docker login
docker login automatically updates your default Docker config.json file with the
Namespace credential helper
and prints your Workspace registry endpoint.
The docker-credential-nsc credential helper is an executable binary that gets automatically installed alongside nsc.
Docker-like tools call the helper binary to retrieve fresh credentials every time they access the specified registry.
Docker-like tools expect the credential helper to be available in your $PATH.
You can check that the credential helper is in your path by running which docker-credential-nsc.
Usage
nsc docker loginExample
$ nsc docker login
You are now logged into your workspace container registry:
nscr.io/8enum0hp1l5ii
Run your first build with:
$ nsc build . --name test --push
Visit our docs for more details on Remote Builds:
https://namespace.so/docs/solutions/docker-buildersWhere 8enum0hp1l5ii is your workspace ID.
Now you can use the docker CLI to push/pull container images to Namespace
Container Registry.
For example:
docker push nscr.io/8enum0hp1l5ii/IMAGE_NAMEOptions
--output_registry_to <file>
With this option nsc will write the Namespace Container Registry endpoint to
the provided file.