https://dagster.io/ logo
Title
a

Antoine Valette

03/07/2023, 4:18 PM
Hello Dagster! Thanks for the great tool, using on the daily is very nice 🙏 I'm using the
DockerRunLauncher
with mounted volumes. Is there any way to use relative host paths in the volumes similarly to what we can do with
docker compose
? Or build an absolute path from
pwd
or an env var? This is what I have currently in my dagster.yaml, which is not working.
run_launcher:
  module: dagster_docker
  class: DockerRunLauncher
  config:
    env_vars: [...]
    networks: [...]
    container_kwargs:
      volumes:
        - /var/run/docker.sock:/var/run/docker.sock
        - ./dagster.yml:/etc/dagster/dagster.yaml:ro <-  There's my problem: it's relative and produce an error asking for absolute.
c

chris

03/08/2023, 9:09 PM
Is the error that you’re getting a dagster error or a docker error? I think docker might have some stricter rules around pathing than docker-compose. Wondering if you could try
$(pwd)
as a workaround
🙏 1
a

Antoine Valette

03/10/2023, 2:45 PM
I tried all sorts of
$(pwd)
and it does not work, I resorted to using the default Run Launcher 🙂