DockerBuildContext Klasse
Definiert einen Docker-Buildkontext.
DockerBuildContext-Konstruktor der Klasse.
- Vererbung
-
azureml._base_sdk_common.abstract_run_config_element._AbstractRunConfigElementDockerBuildContext
Konstruktor
DockerBuildContext(location_type=None, location=None, dockerfile_path='Dockerfile')
Parameter
- location_type
- location
- dockerfile_path
Variablen
- azureml.core.environment.DockerBuildContext.location_type
Typ des Docker-Buildkontextspeicherorts
- azureml.core.environment.DockerBuildContext.location
Speicherort des Docker-Buildkontexts.
- dockerfile_path
- str
Der Pfad der Dockerfile relativ zum Stamm des Buildkontexts lautet standardmäßig Dockerfile.
Methoden
from_local_directory |
Erstellen Sie das DockerBuildContext-Objekt aus einem lokalen Verzeichnis, das einen Docker-Buildkontext enthält. |
from_local_directory
Erstellen Sie das DockerBuildContext-Objekt aus einem lokalen Verzeichnis, das einen Docker-Buildkontext enthält.
static from_local_directory(workspace, path, dockerfile_path='Dockerfile')
Parameter
- dockerfile_path
- str
Dockerfile-Pfad relativ zum Stamm des Docker-Buildkontexts ist standardmäßig Dockerfile.
Gibt zurück
Das DockerBuildContext-Objekt.
Rückgabetyp
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für