Skip to content

Allow setting log_driver when using DockerSwarmOperator #40533

Description

@xjchew

Description

Allow DockerSwarmOperator to be initialized with a log_driver argument which will be used by Docker SDK to create the service.

Use case/motivation

I have a Docker Swarm with all the nodes set to gelf logging driver as default. However, DockerSwarmOperator requires the services' logging driver to be json-file.
Allowing the logging driver to be specified when initializing the DockerSwarmOperator will allow services to be created with json-file logging driver in order for logs to be retrieved and shown in the UI.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions