@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-17T00:22:55.338Z") @Stability(value=Stable) public class DockerImage extends BundlingDockerImage
| 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)
Copies a file or directory out of the Docker image to the local filesystem.
|
String |
cp(String imagePath,
String outputPath)
Copies a file or directory out of the Docker image to the local filesystem.
|
static DockerImage |
fromBuild(String path)
Builds a Docker image.
|
static DockerImage |
fromBuild(String path,
DockerBuildOptions options)
Builds a Docker image.
|
static DockerImage |
fromRegistry(String image)
Reference an image on DockerHub or another online registry.
|
String |
getImage()
The Docker image.
|
void |
run()
Runs a Docker image.
|
void |
run(DockerRunOptions options)
Runs a Docker image.
|
String |
toJSON()
Provides a stable representation of this image for JSON serialization.
|
fromAsset, fromAssetjsiiAsyncCall, 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=Stable)
public DockerImage(@NotNull
String image,
@Nullable
String _imageHash)
image - The Docker image. This parameter is required._imageHash - @Stability(value=Stable)
public DockerImage(@NotNull
String image)
image - The Docker image. This parameter is required.@Stability(value=Stable) @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=Stable) @NotNull public static DockerImage fromBuild(@NotNull String path)
path - The path to the directory containing the Docker file. This parameter is required.@Stability(value=Stable) @NotNull public static DockerImage fromRegistry(@NotNull String image)
image - the image name. This parameter is required.@Stability(value=Stable) @NotNull public String cp(@NotNull String imagePath, @Nullable String outputPath)
If outputPath is omitted the destination path is a temporary directory.
cp in class BundlingDockerImageimagePath - the path in the Docker image. This parameter is required.outputPath - the destination path for the copy operation.@Stability(value=Stable) @NotNull public String cp(@NotNull String imagePath)
If outputPath is omitted the destination path is a temporary directory.
cp in class BundlingDockerImageimagePath - the path in the Docker image. This parameter is required.@Stability(value=Stable)
public void run(@Nullable
DockerRunOptions options)
run in class BundlingDockerImageoptions - @Stability(value=Stable) public void run()
run in class BundlingDockerImage@Stability(value=Stable) @NotNull public String toJSON()
toJSON in class BundlingDockerImage@Stability(value=Stable) @NotNull public String getImage()
getImage in class BundlingDockerImageCopyright © 2021. All rights reserved.