@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:42.457Z") @Stability(value=Experimental) public class DockerImage extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
protected |
DockerImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DockerImage(software.amazon.jsii.JsiiObjectRef objRef) |
|
DockerImage(String image) |
|
DockerImage(String image,
String _imageHash) |
| Modifier and Type | Method and Description |
|---|---|
String |
cp(String imagePath)
(experimental) Copies a file or directory out of the Docker image to the local filesystem.
|
String |
cp(String imagePath,
String outputPath)
(experimental) Copies a file or directory out of the Docker image to the local filesystem.
|
static DockerImage |
fromBuild(String path)
(experimental) Builds a Docker image.
|
static DockerImage |
fromBuild(String path,
DockerBuildOptions options)
(experimental) Builds a Docker image.
|
static DockerImage |
fromRegistry(String image)
(experimental) Reference an image on DockerHub or another online registry.
|
String |
getImage()
(experimental) The Docker image.
|
void |
run()
(experimental) Runs a Docker image.
|
void |
run(DockerRunOptions options)
(experimental) Runs a Docker image.
|
String |
toJSON()
(experimental) Provides a stable representation of this image for JSON serialization.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected DockerImage(software.amazon.jsii.JsiiObjectRef objRef)
protected DockerImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public DockerImage(@NotNull
String image,
@Nullable
String _imageHash)
image - The Docker image. This parameter is required._imageHash - @Stability(value=Experimental)
public DockerImage(@NotNull
String image)
image - The Docker image. This parameter is required.@Stability(value=Experimental) @NotNull public static DockerImage fromBuild(@NotNull String path, @Nullable DockerBuildOptions options)
path - The path to the directory containing the Docker file. This parameter is required.options - Docker build options.@Stability(value=Experimental) @NotNull public static DockerImage fromBuild(@NotNull String path)
path - The path to the directory containing the Docker file. This parameter is required.@Stability(value=Experimental) @NotNull public static DockerImage fromRegistry(@NotNull String image)
image - the image name. This parameter is required.@Stability(value=Experimental) @NotNull public String cp(@NotNull String imagePath, @Nullable String outputPath)
If outputPath is omitted the destination path is a temporary directory.
imagePath - the path in the Docker image. This parameter is required.outputPath - the destination path for the copy operation.@Stability(value=Experimental) @NotNull public String cp(@NotNull String imagePath)
If outputPath is omitted the destination path is a temporary directory.
imagePath - the path in the Docker image. This parameter is required.@Stability(value=Experimental)
public void run(@Nullable
DockerRunOptions options)
options - @Stability(value=Experimental) public void run()
@Stability(value=Experimental) @NotNull public String toJSON()
@Stability(value=Experimental) @NotNull public String getImage()
Copyright © 2021. All rights reserved.