Skip to content

Commit 9763320

Browse files
authored
Merge pull request #8083 from ovh/mb-ai-update-docker-commands
[AI Guides & Tutorials] - Fix docker commands
2 parents ec08154 + a99dfbf commit 9763320

File tree

330 files changed

+5054
-3775
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

330 files changed

+5054
-3775
lines changed

pages/public_cloud/ai_machine_learning/deploy_tuto_01_streamlit/guide.de-de.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Deploy - Tutorial - Build & use a Streamlit image
33
excerpt: How to build and use a custom Docker image containing a Streamlit application
4-
updated: 2023-11-27
4+
updated: 2025-06-27
55
---
66

77
> [!primary]
@@ -17,7 +17,7 @@ The purpose of this tutorial is to provide a concrete example on how to build an
1717

1818
## Requirements
1919

20-
- access to the [OVHcloud Control Panel](https://www.ovh.com/auth/?action=gotomanager&from=https://www.ovh.de/&ovhSubsidiary=de)
20+
- access to the [OVHcloud Control Panel](/links/manager)
2121
- an **AI Deploy project** created inside a **Public Cloud** project
2222
- a [user for AI Deploy](/pages/public_cloud/ai_machine_learning/gi_01_manage_users)
2323
- [Docker](https://www.docker.com/get-started) installed on your local computer
@@ -98,27 +98,28 @@ WORKDIR /workspace
9898
- More information about Dockerfiles can be found [here](https://docs.docker.com/engine/reference/builder/)
9999
- Direct link to the full Dockerfile can be found here [here](https://github.com/ovh/ai-training-examples/tree/main/apps/streamlit/simple-app/Dockerfile)
100100

101-
### Build the docker image from the dockerfile
101+
### Build the Docker image from the Dockerfile
102102

103-
Launch the following command from the **Dockerfile** directory to build your application image.
103+
From the directory containing your **Dockerfile**, run one of the following commands to build your application image:
104104

105-
``` {.console}
105+
```console
106+
# Build the image using your machine's default architecture
106107
docker build . -t streamlit-example:latest
108+
109+
# Build image targeting the linux/amd64 architecture
110+
docker buildx build --platform linux/amd64 -t streamlit-example:latest .
107111
```
108112

109-
> [!primary]
110-
>
111-
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
113+
- The **first command** builds the image using your system’s default architecture. This may work if your machine already uses the `linux/amd64` architecture, which is required to run containers with our AI products. However, on systems with a different architecture (e.g. `ARM64` on `Apple Silicon`), the resulting image will not be compatible and cannot be deployed.
114+
115+
- The **second command** explicitly targets the `linux/AMD64` architecture to ensure compatibility with our AI services. This requires `buildx`, which is not installed by default. If you haven’t used `buildx` before, you can install it by running: `docker buildx install`
112116

113117
> [!primary]
114118
>
115-
> The `-t` argument allow you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **streamlit-example:latest**.
116-
117-
> [!warning]
119+
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
118120
>
119-
> Please make sure that the docker image you will push in order to run containers using AI products respects the **linux/AMD64** target architecture. You could, for instance, build your image using **buildx** as follows:
121+
> The `-t` argument allows you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **streamlit-example:latest**.
120122
>
121-
> `docker buildx build --platform linux/amd64 ...`
122123
123124
### Test it locally (optional)
124125

@@ -192,7 +193,7 @@ Once the AI Deploy app is running you can access your Streamlit application dire
192193
- Do you want to use **Streamlit** to deploy an AI model for audio classification task? [Here it is](/pages/public_cloud/ai_machine_learning/deploy_tuto_03_streamlit_sounds_classification).
193194
- You can imagine deploying an AI model with an other tool: **Flask**. Refer to this [tutorial](/pages/public_cloud/ai_machine_learning/deploy_tuto_02_flask).
194195

195-
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/de/professional-services/) to get a quote and ask our Professional Services experts for a custom analysis of your project.
196+
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for a custom analysis of your project.
196197

197198
## Feedback
198199

pages/public_cloud/ai_machine_learning/deploy_tuto_01_streamlit/guide.en-asia.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Deploy - Tutorial - Build & use a Streamlit image
33
excerpt: How to build and use a custom Docker image containing a Streamlit application
4-
updated: 2023-11-27
4+
updated: 2025-06-27
55
---
66

77
> [!primary]
@@ -17,7 +17,7 @@ The purpose of this tutorial is to provide a concrete example on how to build an
1717

1818
## Requirements
1919

20-
- access to the [OVHcloud Control Panel](https://ca.ovh.com/auth/?action=gotomanager&from=https://www.ovh.com/asia/&ovhSubsidiary=asia)
20+
- access to the [OVHcloud Control Panel](/links/manager)
2121
- an **AI Deploy project** created inside a **Public Cloud** project
2222
- a [user for AI Deploy](/pages/public_cloud/ai_machine_learning/gi_01_manage_users)
2323
- [Docker](https://www.docker.com/get-started) installed on your local computer
@@ -98,27 +98,28 @@ WORKDIR /workspace
9898
- More information about Dockerfiles can be found [here](https://docs.docker.com/engine/reference/builder/)
9999
- Direct link to the full Dockerfile can be found here [here](https://github.com/ovh/ai-training-examples/tree/main/apps/streamlit/simple-app/Dockerfile)
100100

101-
### Build the docker image from the dockerfile
101+
### Build the Docker image from the Dockerfile
102102

103-
Launch the following command from the **Dockerfile** directory to build your application image.
103+
From the directory containing your **Dockerfile**, run one of the following commands to build your application image:
104104

105-
``` {.console}
105+
```console
106+
# Build the image using your machine's default architecture
106107
docker build . -t streamlit-example:latest
108+
109+
# Build image targeting the linux/amd64 architecture
110+
docker buildx build --platform linux/amd64 -t streamlit-example:latest .
107111
```
108112

109-
> [!primary]
110-
>
111-
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
113+
- The **first command** builds the image using your system’s default architecture. This may work if your machine already uses the `linux/amd64` architecture, which is required to run containers with our AI products. However, on systems with a different architecture (e.g. `ARM64` on `Apple Silicon`), the resulting image will not be compatible and cannot be deployed.
114+
115+
- The **second command** explicitly targets the `linux/AMD64` architecture to ensure compatibility with our AI services. This requires `buildx`, which is not installed by default. If you haven’t used `buildx` before, you can install it by running: `docker buildx install`
112116

113117
> [!primary]
114118
>
115-
> The `-t` argument allow you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **streamlit-example:latest**.
116-
117-
> [!warning]
119+
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
118120
>
119-
> Please make sure that the docker image you will push in order to run containers using AI products respects the **linux/AMD64** target architecture. You could, for instance, build your image using **buildx** as follows:
121+
> The `-t` argument allows you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **streamlit-example:latest**.
120122
>
121-
> `docker buildx build --platform linux/amd64 ...`
122123
123124
### Test it locally (optional)
124125

@@ -192,7 +193,7 @@ Once the AI Deploy app is running you can access your Streamlit application dire
192193
- Do you want to use **Streamlit** to deploy an AI model for audio classification task? [Here it is](/pages/public_cloud/ai_machine_learning/deploy_tuto_03_streamlit_sounds_classification).
193194
- You can imagine deploying an AI model with an other tool: **Flask**. Refer to this [tutorial](/pages/public_cloud/ai_machine_learning/deploy_tuto_02_flask).
194195

195-
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/asia/professional-services/) to get a quote and ask our Professional Services experts for a custom analysis of your project.
196+
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for a custom analysis of your project.
196197

197198
## Feedback
198199

pages/public_cloud/ai_machine_learning/deploy_tuto_01_streamlit/guide.en-au.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Deploy - Tutorial - Build & use a Streamlit image
33
excerpt: How to build and use a custom Docker image containing a Streamlit application
4-
updated: 2023-11-27
4+
updated: 2025-06-27
55
---
66

77
> [!primary]
@@ -17,7 +17,7 @@ The purpose of this tutorial is to provide a concrete example on how to build an
1717

1818
## Requirements
1919

20-
- access to the [OVHcloud Control Panel](https://ca.ovh.com/auth/?action=gotomanager&from=https://www.ovh.com.au/&ovhSubsidiary=au)
20+
- access to the [OVHcloud Control Panel](/links/manager)
2121
- an **AI Deploy project** created inside a **Public Cloud** project
2222
- a [user for AI Deploy](/pages/public_cloud/ai_machine_learning/gi_01_manage_users)
2323
- [Docker](https://www.docker.com/get-started) installed on your local computer
@@ -98,27 +98,28 @@ WORKDIR /workspace
9898
- More information about Dockerfiles can be found [here](https://docs.docker.com/engine/reference/builder/)
9999
- Direct link to the full Dockerfile can be found here [here](https://github.com/ovh/ai-training-examples/tree/main/apps/streamlit/simple-app/Dockerfile)
100100

101-
### Build the docker image from the dockerfile
101+
### Build the Docker image from the Dockerfile
102102

103-
Launch the following command from the **Dockerfile** directory to build your application image.
103+
From the directory containing your **Dockerfile**, run one of the following commands to build your application image:
104104

105-
``` {.console}
105+
```console
106+
# Build the image using your machine's default architecture
106107
docker build . -t streamlit-example:latest
108+
109+
# Build image targeting the linux/amd64 architecture
110+
docker buildx build --platform linux/amd64 -t streamlit-example:latest .
107111
```
108112

109-
> [!primary]
110-
>
111-
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
113+
- The **first command** builds the image using your system’s default architecture. This may work if your machine already uses the `linux/amd64` architecture, which is required to run containers with our AI products. However, on systems with a different architecture (e.g. `ARM64` on `Apple Silicon`), the resulting image will not be compatible and cannot be deployed.
114+
115+
- The **second command** explicitly targets the `linux/AMD64` architecture to ensure compatibility with our AI services. This requires `buildx`, which is not installed by default. If you haven’t used `buildx` before, you can install it by running: `docker buildx install`
112116

113117
> [!primary]
114118
>
115-
> The `-t` argument allow you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **streamlit-example:latest**.
116-
117-
> [!warning]
119+
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
118120
>
119-
> Please make sure that the docker image you will push in order to run containers using AI products respects the **linux/AMD64** target architecture. You could, for instance, build your image using **buildx** as follows:
121+
> The `-t` argument allows you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **streamlit-example:latest**.
120122
>
121-
> `docker buildx build --platform linux/amd64 ...`
122123
123124
### Test it locally (optional)
124125

@@ -192,7 +193,7 @@ Once the AI Deploy app is running you can access your Streamlit application dire
192193
- Do you want to use **Streamlit** to deploy an AI model for audio classification task? [Here it is](/pages/public_cloud/ai_machine_learning/deploy_tuto_03_streamlit_sounds_classification).
193194
- You can imagine deploying an AI model with an other tool: **Flask**. Refer to this [tutorial](/pages/public_cloud/ai_machine_learning/deploy_tuto_02_flask).
194195

195-
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/en-au/professional-services/) to get a quote and ask our Professional Services experts for a custom analysis of your project.
196+
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for a custom analysis of your project.
196197

197198
## Feedback
198199

pages/public_cloud/ai_machine_learning/deploy_tuto_01_streamlit/guide.en-ca.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AI Deploy - Tutorial - Build & use a Streamlit image
33
excerpt: How to build and use a custom Docker image containing a Streamlit application
4-
updated: 2023-11-27
4+
updated: 2025-06-27
55
---
66

77
> [!primary]
@@ -17,7 +17,7 @@ The purpose of this tutorial is to provide a concrete example on how to build an
1717

1818
## Requirements
1919

20-
- access to the [OVHcloud Control Panel](https://ca.ovh.com/auth/?action=gotomanager&from=https://www.ovh.com/ca/en/&ovhSubsidiary=ca)
20+
- access to the [OVHcloud Control Panel](/links/manager)
2121
- an **AI Deploy project** created inside a **Public Cloud** project
2222
- a [user for AI Deploy](/pages/public_cloud/ai_machine_learning/gi_01_manage_users)
2323
- [Docker](https://www.docker.com/get-started) installed on your local computer
@@ -98,27 +98,28 @@ WORKDIR /workspace
9898
- More information about Dockerfiles can be found [here](https://docs.docker.com/engine/reference/builder/)
9999
- Direct link to the full Dockerfile can be found here [here](https://github.com/ovh/ai-training-examples/tree/main/apps/streamlit/simple-app/Dockerfile)
100100

101-
### Build the docker image from the dockerfile
101+
### Build the Docker image from the Dockerfile
102102

103-
Launch the following command from the **Dockerfile** directory to build your application image.
103+
From the directory containing your **Dockerfile**, run one of the following commands to build your application image:
104104

105-
``` {.console}
105+
```console
106+
# Build the image using your machine's default architecture
106107
docker build . -t streamlit-example:latest
108+
109+
# Build image targeting the linux/amd64 architecture
110+
docker buildx build --platform linux/amd64 -t streamlit-example:latest .
107111
```
108112

109-
> [!primary]
110-
>
111-
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
113+
- The **first command** builds the image using your system’s default architecture. This may work if your machine already uses the `linux/amd64` architecture, which is required to run containers with our AI products. However, on systems with a different architecture (e.g. `ARM64` on `Apple Silicon`), the resulting image will not be compatible and cannot be deployed.
114+
115+
- The **second command** explicitly targets the `linux/AMD64` architecture to ensure compatibility with our AI services. This requires `buildx`, which is not installed by default. If you haven’t used `buildx` before, you can install it by running: `docker buildx install`
112116

113117
> [!primary]
114118
>
115-
> The `-t` argument allow you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **streamlit-example:latest**.
116-
117-
> [!warning]
119+
> The dot `.` argument indicates that your build context (place of the **Dockerfile** and other needed files) is the current directory.
118120
>
119-
> Please make sure that the docker image you will push in order to run containers using AI products respects the **linux/AMD64** target architecture. You could, for instance, build your image using **buildx** as follows:
121+
> The `-t` argument allows you to choose the identifier to give to your image. Usually image identifiers are composed of a **name** and a **version tag** `<name>:<version>`. For this example we chose **streamlit-example:latest**.
120122
>
121-
> `docker buildx build --platform linux/amd64 ...`
122123
123124
### Test it locally (optional)
124125

@@ -192,7 +193,7 @@ Once the AI Deploy app is running you can access your Streamlit application dire
192193
- Do you want to use **Streamlit** to deploy an AI model for audio classification task? [Here it is](/pages/public_cloud/ai_machine_learning/deploy_tuto_03_streamlit_sounds_classification).
193194
- You can imagine deploying an AI model with an other tool: **Flask**. Refer to this [tutorial](/pages/public_cloud/ai_machine_learning/deploy_tuto_02_flask).
194195

195-
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/en-ca/professional-services/) to get a quote and ask our Professional Services experts for a custom analysis of your project.
196+
If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](/links/professional-services) to get a quote and ask our Professional Services experts for a custom analysis of your project.
196197

197198
## Feedback
198199

0 commit comments

Comments
 (0)