You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
-
108
77
> [!IMPORTANT]
109
78
> Azure Machine Learning only supports Docker images that provide the following software:
0 commit comments