Skip to content

Ability to set volumes and bind mounts in dockerfile #1191

@ndarilek

Description

@ndarilek

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions