-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Description
I'm creating a dockerfile whose sole purpose is to build binaries for a complex file processing pipeline. Ideally I'd like to just call "docker run importer ", kick off the process, then have the output left in some directory on the host.
I can almost achieve this thanks to ENTRYPOINT running my importer script and handing off the URL, but it still requires me to configure mountpoints on the docker run command line. I'm creating a shell script that runs Docker with the right arguments, but it'd be nice if my dockerfile could specify a bind mount of, say, /tmp/output pointed at the current working directory, then running the import pipeline would just deposit its output wherever I ran it. No extra shell script necessary.
Perhaps a syntax similar to EXPOSE, with BINDMOUNT points separated by spaces or : to denote different container->host mappings?