Registry Image Args
data class RegistryImageArgs(val build: Output<RegistryImageBuildArgs>? = null, val insecureSkipVerify: Output<Boolean>? = null, val keepRemotely: Output<Boolean>? = null, val name: Output<String>? = null) : ConvertibleToJava<RegistryImageArgs>
Manages the lifecycle of docker image/tag in a registry means it can store one or more version of specific docker images and identified by their tags.
Example Usage
To be able to update an image itself when an updated image arrives.
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.docker.RegistryImage;
import com.pulumi.docker.RegistryImageArgs;
import com.pulumi.docker.inputs.RegistryImageBuildArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var helloworld = new RegistryImage("helloworld", RegistryImageArgs.builder()
.build(RegistryImageBuildArgs.builder()
.context(String.format("%s/absolutePathToContextFolder", path.cwd()))
.build())
.build());
}
}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(build: Output<RegistryImageBuildArgs>? = null, insecureSkipVerify: Output<Boolean>? = null, keepRemotely: Output<Boolean>? = null, name: Output<String>? = null)
Properties
Link copied to clipboard
Definition for building the image
Link copied to clipboard
If true
, the verification of TLS certificates of the server/registry is disabled. Defaults to false
Link copied to clipboard
If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to false