Image
Last updated
Last updated
Image defines a Docker image used when creating this container. An Image can be stored in a public or a private repository.
Attributes are the properties of a resource that can be used to configure it.
Name name
required
string
Name of the image to use when creating the container, can either be the full canonical name or short name for Docker official images. e.g. `consul:v1.6.1` or `docker.io/consul:v1.6.1`.
Username username
string
Username to use when connecting to a private image repository
Password password
string
Password to use when connecting to a private image repository, for both username and password interpolated environment variables can be used in place of static values.
These attributes are computed when the config is parsed and applied, and are therefor only known at parsetime or runtime.
Meta ID meta.id
string
The full ID of the resource e.g. `resource.type.name`. This is computed from the full resource path:
Meta Type meta.type
string
The type of the resource. This taken from the type label of the resource definition.
Meta Name meta.name
string
The name of the resource. This taken from the name label of the resource definition.
ID id
string
ID is the unique identifier for the image, this is independent of tag and changes each time the image is built. An image that has been tagged multiple times also shares the same ID. ID string `hcl:"id,optional" json:"id,omitempty"`