Skip to content

Add --init support to docker stacks (and docker-compose v3) #34639

@alexkreidler

Description

@alexkreidler

Related to docker/compose#4805.

Should be the same or similar to the format in compose v2: https://docs.docker.com/compose/compose-file/compose-file-v2/#init
e.g.

version: '3'
services:
  web:
    image: alpine:latest
    init: true

I would assume this requires an addition to docker service create, because an --init option is not present in docker version 17.06, although it may be present in the API, just not in the CLI yet.

If someone would point me at the right files/directories I would happy to give this a shot.

P.S. sorry to bother everyone with a low-priority issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions