get_model_package_container_registry: Get the Azure container registry that a packaged model uses

Description Usage Arguments Value See Also Examples

View source: R/model.R

Description

Return a ContainerRegistry object for where the image (or base image, for Dockerfile packages) is stored in an Azure container registry.

Usage

1

Arguments

package

The ModelPackage object.

Value

The ContainerRegistry object.

See Also

container_registry()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# Given a ModelPackage object,
# get the container registry information
## Not run: 
container_registry <- get_model_package_container_registry(package)
address <- container_registry$address
username <- container_registry$username
password <- container_registry$password

## End(Not run)

# To then authenticate Docker with the Azure container registry from
# a shell or command-line session, use the following command, replacing
# <address>, <username>, and <password> with the values retrieved
# from above:
# ```bash
# docker login <address> -u <username> -p <password>
# ```

azuremlsdk documentation built on Oct. 23, 2020, 8:22 p.m.