galaxy icon indicating copy to clipboard operation
galaxy copied to clipboard

How to use docker volumes?

Open zombor opened this issue 9 years ago • 2 comments

Is it possible right now? I need to start an application that mounts a volume into the running docker container using docker's -v flag.

zombor avatar Oct 22 '15 02:10 zombor

This isn't currently possible, though it's something we've thought about.

One thing that makes it a little tricky is that Galaxy tries to be all about "stateless" services, and adding volumes adds state to the local machine. Can you give us a sense for what you're mounting into the container? Is it something that you'd commonly find on the host machine, or is it something that you'd have to pre-configure the host to have (using something like an AWS AMI or a configuration management system like ansible, chef, puppet, etc.)

joeshaw avatar Oct 26 '15 13:10 joeshaw

I currently have two use cases:

  1. An apache file server. A client basically transfers documents into their home directory and an apache docker container mounts that as it's document source. Building an image with the docs isn't really an option due to technical proficiency and "self service".
  2. A Kibana log server. This docker image reads config from the local file system (optionally from a URL, but I'd rather not use this method), as well as reading the host's /var/log directory to consume system log messages.

I'm currently just running this manually with docker and then manually configuring shuttle to point to the running docker containers but I'd like to integrate them into the whole automation that galaxy provides.

zombor avatar Oct 26 '15 14:10 zombor