DEV Community

Discussion on: Advanced Docker: how to use secrets the right way

Collapse
mr13 profile image
Mr.13

why not mount using -v??

Collapse
gasparev profile image
gasparev Author

You can use -v with docker run but not with docker build. Here I explain how to do when you need secrets at build time.