Docker container for compute instance in machine learning

Kamal Tanwar 1 Reputation point
2021-05-29T18:39:42.447+00:00

Hi Everyone,

I'm new to the cloud environment and the Microsoft Azure so incase this question doesn't belong here, my apologies in advance.

I was wondering if it's possible to create a docker container for a python environment within compute instance?

I'm working my way towards getting DP-100 certification. The other day I was trying to follow a tutorial here https://github.com/MicrosoftLearning/mslearn-dp100/blob/main/07%20-%20Work%20with%20Compute.ipynb
There's a section in there 'Create a compute cluster' in which a docker configuration is specified within ScriptRunConfig. I tried running in this code on a compute instance instead of a cluster and got the following error
100700-image.png

The code works perfectly fine if I use a compute cluster instead of a compute instance

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,332 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,826 Reputation points
    2021-05-31T10:07:49.41+00:00

    @Kamal Tanwar Thanks for the question. Can you please add more details about the docker container that you are trying.

    Please follow the document to train a model by using custom docker image. The base images are available on Github.
    You can also use these Docker images as base images for your custom Azure ML Environments. If you specify any conda dependencies in your Environment, the extra dependencies are installed on top of the dependencies in the Docker image.

    Please follow Prebuilt Docker images for inference (before Inference-optimized curated images). This provides with a faster and simpler deployment experience. These prebuilt Docker Images come with popular machine learning frameworks and python packages.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.