Show / Hide Table of Contents

Class GetRegistryImage

Inheritance
System.Object
GetRegistryImage
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Docker
Assembly: Pulumi.Docker.dll
Syntax
public static class GetRegistryImage

Methods

View Source

InvokeAsync(GetRegistryImageArgs, InvokeOptions)

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

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Docker = Pulumi.Docker;

class MyStack : Stack
{
public MyStack()
{
    var ubuntuRegistryImage = Output.Create(Docker.GetRegistryImage.InvokeAsync(new Docker.GetRegistryImageArgs
    {
        Name = "ubuntu:precise",
    }));
    var ubuntuRemoteImage = new Docker.RemoteImage("ubuntuRemoteImage", new Docker.RemoteImageArgs
    {
        Name = ubuntuRegistryImage.Apply(ubuntuRegistryImage => ubuntuRegistryImage.Name),
        PullTriggers = 
        {
            ubuntuRegistryImage.Apply(ubuntuRegistryImage => ubuntuRegistryImage.Sha256Digest),
        },
    });
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetRegistryImageResult> InvokeAsync(GetRegistryImageArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetRegistryImageArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetRegistryImageResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.