#How to volume mount when running a container?

1 messages · Page 1 of 1 (latest)

hearty gust
#

When running an interactive terminal like

dagger call example terminal —cmd=bash

Is it possible to volume mount a host volume into the container? Similar what you would do with docker run -v?

This would greatly enhance local development! Especially when doing web development with hot-reloading.

fading matrix
#

Hey @hearty gust!

Unfortunately at the moment there is no way of volume mounting for live development. More details here: https://github.com/dagger/dagger/issues/6990. There is an alternative suggested by a community member of using an external file watcher that re-runs the corresponding dagger command which might work for you!

GitHub

An engine to run your pipelines in containers. Contribute to dagger/dagger development by creating an account on GitHub.

hearty gust
#

Added a +1 to the issue, thanks! I’ll try to integrate Dagger with Tilt to get the hot reloading to work. Is there documentation how to get a Dagger container into the local docker daemon?