DockerImage
A Docker image.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.NewDockerImage(image *string, _imageHash *string) DockerImage
Name | Type | Description |
---|---|---|
image |
*string |
No description. |
_imageHash |
*string |
No description. |
image
Required
- Type: *string
_imageHash
Optional
- Type: *string
Methods
Name | Description |
---|---|
Cp |
Copies a file or directory out of the Docker image to the local filesystem. |
Run |
Runs a Docker image. |
ToJSON |
Provides a stable representation of this image for JSON serialization. |
Cp
func Cp(imagePath *string, outputPath *string) *string
Copies a file or directory out of the Docker image to the local filesystem.
If outputPath
is omitted the destination path is a temporary directory.
- Type: *string
the path in the Docker image.
- Type: *string
the destination path for the copy operation.
Run
func Run(options DockerRunOptions)
Runs a Docker image.
- Type: DockerRunOptions
ToJSON
func ToJSON() *string
Provides a stable representation of this image for JSON serialization.
Static Functions
Name | Description |
---|---|
FromBuild |
Builds a Docker image. |
FromRegistry |
Reference an image on DockerHub or another online registry. |
FromBuild
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.DockerImage_FromBuild(path *string, options DockerBuildOptions) DockerImage
Builds a Docker image.
- Type: *string
The path to the directory containing the Docker file.
- Type: DockerBuildOptions
Docker build options.
FromRegistry
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
alicloudroscdkcore.DockerImage_FromRegistry(image *string) DockerImage
Reference an image on DockerHub or another online registry.
- Type: *string
the image name.
Properties
Name | Type | Description |
---|---|---|
Image |
*string |
No description. |
Image
Required
func Image() *string
- Type: *string