Skip to content

Clarify Use of azureml.core.runconfig.DockerConfiguration #1483

Open
@hamelsmu

Description

@hamelsmu

@keijik @cody-dkdc

In this example notebook, you are using deprecated code

from azureml.core import Environment

fastai_env = Environment("fastai")
fastai_env.docker.enabled = True

I get the warning

'enabled' is deprecated. Please use the azureml.core.runconfig.DockerConfiguration object with the 'use_docker' param instead.

However, from the docs its a bit ambiguous on how to use it. It appears that the below code is incorrect. What is the correct way to use this instead? Can the documentation be improved? Also can you provide a better warning stating the version number at which this will be deprecated, or say that it will be deprecated in the future since it isn't deprecated as of right now?

from azureml.core.runconfig import DockerConfiguration
dc = DockerConfiguration(use_docker=True)
fastai_env.docker = dc

The documentation for this doesn't really provide many hints on where to use this configuration correctly. Can an example be made for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ADOIssue is documented on MSFT ADO for internal trackingComputedoc-enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions