Skip to content

Commit e5ca531

Browse files
authored
Merge pull request #4642 from MicrosoftDocs/main
5/8/2025 AM Publish
2 parents 8ab07ce + 3cbd10c commit e5ca531

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

articles/machine-learning/v1/how-to-train-with-custom-image.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -74,37 +74,6 @@ fastai_env.docker.base_image = "fastdotai/fastai2:latest"
7474
fastai_env.python.user_managed_dependencies = True
7575
```
7676

77-
#### Use a private container registry (optional)
78-
79-
To use an image from a private container registry that isn't in your workspace, use `docker.base_image_registry` to specify the address of the repository and a username and password:
80-
81-
```python
82-
# Set the container registry information
83-
fastai_env.docker.base_image_registry.address = "myregistry.azurecr.io"
84-
fastai_env.docker.base_image_registry.username = "username"
85-
fastai_env.docker.base_image_registry.password = "password"
86-
```
87-
88-
#### Use a custom Dockerfile (optional)
89-
90-
It's also possible to use a custom Dockerfile. Use this approach if you need to install non-Python packages as dependencies. Remember to set the base image to `None`.
91-
92-
```python
93-
# Specify Docker steps as a string
94-
dockerfile = r"""
95-
FROM mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:20210615.v1
96-
RUN echo "Hello from custom container!"
97-
"""
98-
99-
# Set the base image to None, because the image is defined by Dockerfile
100-
fastai_env.docker.base_image = None
101-
fastai_env.docker.base_dockerfile = dockerfile
102-
103-
# Alternatively, load the string from a file
104-
fastai_env.docker.base_image = None
105-
fastai_env.docker.base_dockerfile = "./Dockerfile"
106-
```
107-
10877
> [!IMPORTANT]
10978
> Azure Machine Learning only supports Docker images that provide the following software:
11079
> * Ubuntu 18.04 or greater

0 commit comments

Comments
 (0)