Jump toSuggest an edit
How to manage a container
Reviewed on 13 August 2024 • Published on 26 May 2021
This page shows you how to manage a container, should you need to verify or edit its deployment parameters after creation. You can deploy a container from the Scaleway Container Registry or any other public container registry, such as Docker Hub, AWS Container registries, GitLab container registry, etc.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- Deployed a container
How to manage a container deployment
Manage a deployment from the Scaleway Container Registry
- Click Containers in the Serverless section of the side menu. The Containers page displays.
- Click the relevant containers namespace.
- Click the name of the container you want to manage.
- Check or edit any of the following information as required, on the Deployment tab:
- Select the Scaleway Container Registry.
- Choose an image from your Container Registry. Select the required Container Registry namespace from the drop-down list, and then select the container and tag.
- Choose the Port your container is listening on. We recommend configuring your container to listen on the PORT environment variable.
- Choose the resources to be allocated to your container at runtime. These define the performance characteristics of your container.
- Set your scaling preferences, or leave them at default values. The Scaleway platform autoscales the number of available instances of your container to match the incoming load, depending on the settings you define here.
- Define any environment variables you want to inject into your container. For each environment variable, click +Add new variable and enter the key/value pair.
- Add secrets for your container. Secrets are environment variables which are injected into your container, but the values are not retained or displayed by Scaleway after initial validation.
- Set the desired privacy policy for your container. This defines whether container invocation may be done anonymously (public) or only via an authentication mechanism provided by the Scaleway API (private).
- Click Advanced Options if you wish to set a custom timeout for your container.
- Click Deploy container to save any changes you have made.
Manage a deployment from an external container registry
- Click Containers in the Serverless section of the side menu. The Containers page displays.
- Click the relevant containers namespace.
- Click the name of the container you want to manage.
- Check or edit any of the following information as required, on the Deployment tab:
- Select the External container registry.
- Enter the public container image URL provided by the external registry.
- Choose the Port your container is listening on. We recommend configuring your container to listen on the PORT environment variable.
- Choose the resources to be allocated to your container at runtime. These define the performance characteristics of your container.
- Set your scaling preferences, or leave them at default values. The Scaleway platform autoscales the number of available instances of your container to match the incoming load, depending on the settings you define here.
- Define any environment variables you want to inject into your container. For each environment variable, click +Add new variable and enter the key/value pair.
- Add secrets for your container. Secrets are environment variables which are injected into your container, but the values are not retained or displayed by Scaleway after initial validation.
- Set the desired privacy policy for your container. This defines whether container invocation may be done anonymously (public) or only via an authentication mechanism provided by the Scaleway API (private).
- Click Advanced Options if you wish to set a custom timeout for your container.
- Click Deploy container to save any changes you have made.