Skip to content

Automatically remove Containers with DockerRunLauncher #9739

Answered by johannkm
PascalStehling asked this question in Q&A
Discussion options

You must be logged in to vote

Yes:

# dagster.yaml
run_launcher:
  class: DockerRunLauncher
  module: dagster_docker
  config:
    container_kwargs:
      auto_remove: true

This will get passed to the the auto_remove param of the Docker api run method, documented here: https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.ContainerCollection.run

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@johannkm
Comment options

Answer selected by johannkm
Comment options

You must be logged in to vote
1 reply
@geekodour
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants