Scaleway logo
Commands

Documentation for `scw registry`

The CLI documentation pages are currently under construction

The content is up to date. We're making improvements to the site over the next few weeks for a better experience.

This API allows you to manage your Container Registry resources.

Image management commands

An image represents a container image. A container image is a file that includes all the requirements and instructions of a complete and executable version of an application. When running, it becomes one or multiple instances of that application.

The visibility of an image can be public - when anyone can pull it, private - when only users within your organization can pull it, or inherited from the namespace visibility - which is the default. The visibility of your image can be changed using the update image endpoit.

Delete an image

Delete a given image. You must specify, in the endpoint, the region and image_id parameters of the image you want to delete.

Usage:

TerminalCode
scw registry image delete <image-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
image-idUUID of the imageRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Get an image

Retrieve information about a given container image, specified by its image_id and region. Full details about the image, such as name, namespace_id, status, visibility, and size are returned in the response.

Usage:

TerminalCode
scw registry image get <image-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
image-idUUID of the imageRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

List images

List all images in a specified region. By default, the images listed are ordered by creation date in ascending order. This can be modified via the order_by field. You can also define additional parameters for your query, such as the namespace_id and project_id parameters.

Usage:

TerminalCode
scw registry image list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-byCriteria to use when ordering image listings. Possible values are created_at_asc, created_at_desc, name_asc, name_desc, region, status_asc and status_desc. The default value is created_at_asc.One of: created_at_asc, created_at_desc, name_asc, name_desc
namespace-idFilter by the namespace ID
nameFilter by the image name (exact match)
project-idFilter by Project ID
organization-idFilter by Organization ID
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all

Update an image

Update the parameters of a given image, specified by its image_id and region. You can update the visibility parameter.

Usage:

TerminalCode
scw registry image update <image-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
image-idID of the image to updateRequired
visibilitySet to public to allow the image to be pulled without authentication. Else, set to private. Set to inherit to keep the same visibility configuration as the namespaceOne of: visibility_unknown, inherit, public, private
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Install a local Docker credential helper

This command will install the Docker credential helper for your account.

It will create a new script named docker-credential-scw. This script will be called each time Docker needs the credentials and will return the correct credentials. It avoid running docker login commands.

This command will install the Docker credential helper for your account.

It will create a new script named docker-credential-scw. This script will be called each time Docker needs the credentials and will return the correct credentials. It avoid running docker login commands.

Usage:

TerminalCode
scw registry install-docker-helper [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
pathDirectory in which the Docker helper will be installed. This directory should be in your $PATHDefault: /usr/local/bin

Login to a registry

This command will run the correct command in order to log you in on the registry with the chosen program. You will need to have the chosen binary installed on your system and in your PATH.

This command will run the correct command in order to log you in on the registry with the chosen program. You will need to have the chosen binary installed on your system and in your PATH.

Usage:

TerminalCode
scw registry login [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
programProgram used to log in to the namespaceDefault: docker
One of: docker, podman
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, it-mil

Logout of a registry

This command will run the correct command in order to log you out of the registry with the chosen program. You will need to have the chosen binary installed on your system and in your PATH.

This command will run the correct command in order to log you out of the registry with the chosen program. You will need to have the chosen binary installed on your system and in your PATH.

Usage:

TerminalCode
scw registry logout [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
programProgram used to log in to the namespaceDefault: docker
One of: docker, podman
regionRegion to target. If none is passed will use default region from the configDefault: fr-par

Namespace management commands

A namespace is a collection of container images, each bearing the unique identifier of that namespace. A namespace can be either public or private, by default.

Each namespace must have a globally unique name within its region. This means no namespaces in the same region can bear the same name.

You can use namespace privacy policies to specify whether everyone has the right to pull an image from a namespace or not. When an image is in a public namespace, anyone is able to pull it. You can set your namespace to private if you want to restrict access.

Create a namespace

Create a new Container Registry namespace. You must specify the namespace name and region in which you want it to be created. Optionally, you can specify the project_id and is_public in the request payload.

Usage:

TerminalCode
scw registry namespace create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
nameName of the namespaceRequired
Default: <generated>
descriptionDescription of the namespace
project-idProject ID to use. If none is passed the default project ID will be used
is-publicDefines whether or not namespace is public
organization-idOrganization ID to use. If none is passed the default organization ID will be used
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Delete a namespace

Delete a given namespace. You must specify, in the endpoint, the region and namespace_id parameters of the namespace you want to delete.

Usage:

TerminalCode
scw registry namespace delete <namespace-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
namespace-idUUID of the namespaceRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Get a namespace

Retrieve information about a given namespace, specified by its namespace_id and region. Full details about the namespace, such as description, project_id, status, endpoint, is_public, size, and image_count are returned in the response.

Usage:

TerminalCode
scw registry namespace get <namespace-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
namespace-idUUID of the namespaceRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

List namespaces

List all namespaces in a specified region. By default, the namespaces listed are ordered by creation date in ascending order. This can be modified via the order_by field. You can also define additional parameters for your query, such as the instance_id and project_id parameters.

Usage:

TerminalCode
scw registry namespace list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-byCriteria to use when ordering namespace listings. Possible values are created_at_asc, created_at_desc, name_asc, name_desc, region, status_asc and status_desc. The default value is created_at_asc.One of: created_at_asc, created_at_desc, description_asc, description_desc, name_asc, name_desc
project-idFilter by Project ID
nameFilter by the namespace name (exact match)
organization-idFilter by Organization ID
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all

Update a namespace

Update the parameters of a given namespace, specified by its namespace_id and region. You can update the description and is_public parameters.

Usage:

TerminalCode
scw registry namespace update <namespace-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
namespace-idID of the namespace to updateRequired
descriptionNamespace description
is-publicDefines whether or not the namespace is public
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Tag management commands

Tags allow you to organize your container images. This gives you the possibility of sorting and filtering your images in any organizational pattern of your choice, which in turn helps you arrange, control and monitor your cloud resources. You can assign as many tags as you want to each image.

Delete a tag

Delete a given image tag. You must specify, in the endpoint, the region and tag_id parameters of the tag you want to delete.

Usage:

TerminalCode
scw registry tag delete <tag-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
tag-idUUID of the tagRequired
timeoutMaximum time to handle the request
forceIf two tags share the same digest the deletion will fail unless this parameter is set to true (deprecated)Deprecated
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

Get a tag

Retrieve information about a given image tag, specified by its tag_id and region. Full details about the tag, such as name, image_id, status, and digest are returned in the response.

Usage:

TerminalCode
scw registry tag get <tag-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
tag-idUUID of the tagRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw

List tags

List all tags for a given image, specified by region. By default, the tags listed are ordered by creation date in ascending order. This can be modified via the order_by field. You can also define additional parameters for your query, such as the name.

Usage:

TerminalCode
scw registry tag list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-byCriteria to use when ordering tag listings. Possible values are created_at_asc, created_at_desc, name_asc, name_desc, region, status_asc and status_desc. The default value is created_at_asc.One of: created_at_asc, created_at_desc, name_asc, name_desc
image-idUUID of the imageRequired
nameFilter by the tag name (exact match)
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, nl-ams, pl-waw, all