Mounted directory with withMountedDirectory is not updated on host #6688
-
I'm having local dagger |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
hey there! It's not |
Beta Was this translation helpful? Give feedback.
hey there!
WithMountedDirectory
works the same way as theRUN --mount
instruction that you see in Dockerfiles.It's not
bind mounting
the files in your machine to the build, what it does is mounting the files from yourbuild context
into your pipeline so your resulting container doesn't contain those files in the layered filesystem. If you want the files that you change in your pipeline in your host, you need to use theExport
function. There's more info about that here: https://docs.dagger.io/421437/work-with-host-filesystem/#export-a-directory-from-a-container-to-the-host