Make sure that you have created a Container Registry namespace and pushed the latest NGINX Docker image (or any other image with a web server) to it.
Containers - Quickstart
Scaleway Serverless Containers provides you with containerized stateless web applications deployed in the cloud. They are designed for short-lived, event-driven tasks.
Containers rely on the HTTP protocol, and must therefore include a web server to work properly. Refer to the differences between Containers, Jobs, and Functions for more information on Scaleway’s different Serverless products.
This page explains how to deploy a basic NGINX image in a Serverless Container using the Scaleway console.
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
How to deploy a Serverless Container
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.
Deploy from the Scaleway Container Registry
If you have no existing Serverless Containers resources in your current Project, the creation process will guide you through the creation of a namespace, and then a container.
-
Click Containers in the Serverless section of the side menu. The containers page displays.
-
Click Deploy container. The containers namespace creation wizard displays.
-
Complete the following steps in the wizard:
- Enter a name or use the automatically generated one. The name can only contain lowercase alphanumeric characters and dashes.
- Enter a description (optional).
- Choose a region, which is the geographical location in which your namespace will be deployed.
-
Click Create namespace and add container. The container creation wizard displays.
NoteRefer to the How to create a Containers namespace documentation page for more information on the different parameters.
-
Complete the following steps in the wizard:
- Select the Scaleway Container Registry.
- Select the appropriate Registry namespace from the drop-down list, and then select the
nginx
container andlatest
tag. - Set the port to
80
. - Enter a name or use the automatically generated one. The name can only contain lowercase alphanumeric characters and dashes.
- Enter a description (optional).
- Choose the smallest resources available to allocate to your container.
- Leave the default scaling values.
- In the Advanced options, set the Container privacy policy to public.
- Verify the estimated cost.
NoteRefer to How to deploy a Container from the Scaleway Registry for more information on the different parameters.
-
Click Deploy container to finish.
-
Copy the container’s endpoint URL from the Overview tab, and paste it in the address bar of your browser.
The web server’s home page displays.
Deploy from an external registry
If you have no existing Serverless Containers resources in your current Project, the creation process will guide you through the creation of a namespace, and then a container.
Scaleway's Container Registry allows for a seamless integration with Serverless Containers and Jobs at a competitive price. Serverless products support external public registries (such as Docker Hub), but we do not recommend using them due to uncontrolled rate limiting, which can lead to failures when starting resources, unexpected usage conditions, and pricing changes.
-
Click Containers in the Serverless section of the side menu. The containers page displays.
-
Click Deploy container. The containers namespace creation wizard displays.
-
Complete the following steps in the wizard:
- Enter a name or use the automatically generated one. The name can only contain lowercase alphanumeric characters and dashes.
- Enter a description (optional).
- Choose a region, which is the geographical location in which your namespace will be deployed.
-
Click Create namespace and add container. The container creation wizard displays.
NoteRefer to the How to create a Containers namespace documentation page for more information on the different parameters.
-
Complete the following steps in the wizard:
- Select the External container registry.
- Enter
docker.io/library/nginx:latest
in the image URL field. - Set the port to
80
. - Enter a name or use the automatically generated one. The name can only contain lowercase alphanumeric characters and dashes.
- Enter a description (optional).
- Choose the smallest resources available to allocate to your container.
- Leave the default scaling values.
- In the Advanced options, set the Container privacy policy to public.
- Verify the estimated cost.
NoteRefer to How to deploy a Container from an external container registry for more information on the different parameters.
-
Click Deploy container. The deployment takes several minutes to complete. Check the Overview tab to see the container’s status.
-
Copy the container’s endpoint URL from the Overview tab, and paste it in the address bar of your browser.
The web server’s home page displays.
How to delete a container
- Click Containers in the Serverless section of the side menu. The containers page displays.
- Click the relevant container’s namespace.
- Click the «See more Icon» icon next to the container you want to delete, and select Delete from the drop-down menu.
- Type DELETE in the pop-up, then click Delete container.
Going further
For advanced usage, such as larger projects with dependencies, automation, multiple containers, and more, there are several ways to deploy containers.
Check out our GitHub repository for real-world examples.