Hello Dagster! Thanks for the great tool, using o...
# ask-community
a
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.
Copy code
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
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
I tried all sorts of
$(pwd)
and it does not work, I resorted to using the default Run Launcher 🙂