Warning

DUE TO SECURITY DEPS not being fixed in the docker python library, this feature is for now disabled. Apologies for the inconvenience.

services.x-docker_opts

services:
  serviceA:
    image: nginx
    x-docker_opts:
      InterpolateWithDigest: bool

InterpolateWithDigest

Warning

For this functionality to work, you must be running it on a machine with access to docker API engine.

When the image comes from docker_opts, we can very easily identify the image digest (sha256) for it and use that instead of a tag. However not as human user friendly, this allows to always point to the same image regardless of tags change.

Type

Boolean

Default

False

Required

False

JSON Schema

Model

services.x-docker_opts specification

services.x-docker_opts

The services.x-docker_opts specification for ComposeX

type

object

properties

  • InterpolateWithDigest

When true, replaces the image tag with the image digest

type

boolean

additionalProperties

False

definitions

Definition

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "id": "services.x-docker_opts",
  "$id": "services.x-docker_opts.spec.json",
  "type": "object",
  "title": "services.x-docker_opts specification",
  "description": "The services.x-docker_opts specification for ComposeX",
  "additionalProperties": false,
  "properties": {
    "InterpolateWithDigest": {
      "type": "boolean",
      "description": "When true, replaces the image tag with the image digest"
    }
  },
  "definitions": {}
}