#Is it possible to mount volume paths like normal docker -v argument?

1 messages · Page 1 of 1 (latest)

zealous ruin
#

Is it possible to mount paths and volumes like the usual docker -v arguments?

I know that there is WithMountedFile and WithMountedDirectory functions but to best of my knowledge, these are actually copying the files and directories to the containers right? Is it possible to start containers and mount volumes normally such as network file share volumes?

craggy flame
#

no, that's not possible. Similarly to docker build you can't bind mount things from your host machine.

You need to think of Dagger as a replacement of docker build more than docker run

#

you can however import and export files after your build has finished. That's one big advantage over docker build for example that doesn't allow you to do this