getRegistryImage

Reads the image metadata from a Docker Registry. Used in conjunction with the docker.RemoteImage resource to keep an image up to date on the latest available version of the tag.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.docker.DockerFunctions;
import com.pulumi.docker.inputs.GetRegistryImageArgs;
import com.pulumi.docker.RemoteImage;
import com.pulumi.docker.RemoteImageArgs;
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) {
final var ubuntuRegistryImage = DockerFunctions.getRegistryImage(GetRegistryImageArgs.builder()
.name("ubuntu:precise")
.build());
var ubuntuRemoteImage = new RemoteImage("ubuntuRemoteImage", RemoteImageArgs.builder()
.name(ubuntuRegistryImage.applyValue(getRegistryImageResult -> getRegistryImageResult.name()))
.pullTriggers(ubuntuRegistryImage.applyValue(getRegistryImageResult -> getRegistryImageResult.sha256Digest()))
.build());
}
}

Return

A collection of values returned by getRegistryImage.

Parameters

argument

A collection of arguments for invoking getRegistryImage.


suspend fun getRegistryImage(insecureSkipVerify: Boolean? = null, name: String): GetRegistryImageResult

Return

A collection of values returned by getRegistryImage.

Parameters

insecureSkipVerify

If true, the verification of TLS certificates of the server/registry is disabled. Defaults to false

name

The name of the Docker image, including any tags. e.g. alpine:latest

See also


Return

A collection of values returned by getRegistryImage.

Parameters

argument

Builder for com.pulumi.docker.kotlin.inputs.GetRegistryImagePlainArgs.

See also