Skip to main content

bx2cloud_container (Data Source)

Example Usage

data "bx2cloud_container" "my_container" {
id = 1
}

Schema

Read-Only

  • cmd (List of String) Overides the default commands from the original image. Corresponds to Dockerfile's CMD instruction.
  • created_at (String)
  • entrypoint (List of String) Overides the default executable from the original image. Corresponds to Dockerfile's ENTRYPOINT instruction.
  • env (Map of String) Appends extra environment variables to the default environment variables from the original image. Corresponds to Dockerfile's ENV instruction.
  • id (String) The ID of this resource.
  • image (String) The container image name from an OCI compliant registry.
  • ip (String) Specifies the container's allocated address and mask prefix length in CIDR notation. For example 10.0.8.3/24, 192.168.10.8/25.
  • started_at (String) The time the container was last started at.
  • status (String) The status of the container: running or stopped.
  • subnetwork_id (String) The subnetwork this container is attached to.