Table of Contents

Docker Services

About

Docker is a service provider that permits to create/start/stop/drop local docker container.

Example

Example of a service in the configuration vault

services:
  sqlserver:
    type: docker
    image: mcr.microsoft.com/mssql/server:2022-CU18-ubuntu-22.04
    ports:
      - 1433:1433
    environment:
      ACCEPT_EULA: Y
      MSSQL_SA_PASSWORD: TheSecret1!

As for any value in the configuration vault, you can use:

Attributes

The Docker service provider supports actually the following attributes.

Name Description Format
NAME The container name
IMAGE The docker image name [<registry>/][<project>/]<image>[:<tag>|@<digest>]
PORTS The ports binding (from host to container) List of hostPort:containerPort
ENVIRONMENT The environment Map of Key/Pair
VOLUMES The volumes in short syntax format List of VOLUME:CONTAINER_PATH:ACCESS_MODE
COMMAND The command in exec form List of args