Equivalent of local host files for running Bluemix containers

When running a docker container locally you can run it with a command like this:

docker run --name some-nginx -v /some/nginx.conf:/etc/nginx/nginx.conf:ro -d nginx

This will use the file /some/nginx.conf in place of /etc/nginx/nginx.conf within your running docker container. This is very handy if you don’t want to permanently enshrine your configuration files inside of an image.

  • Development environment setup for Mac and CentOS using Docker
  • LXC implementation with Docker
  • Attaching process to Docker libcontainer container
  • How should I handle remote logging with systemd?
  • docker invalid characters for local volume name
  • Exposing Elastic Beanstalk environment variables to Laravel's artisan using Docker
  • However, when running Bluemix containers there is no local filesystem as everything is on a remote host. Is there an equivalent option available?

    Without this it seems like the best options are either to build a dedicated image with your configuration or to put the entire configuration as a user provided service. Is this a correct assumption?

  • How to have bash script answer interactive prompts (no y/n only)?
  • How to change docker daemon root directory in CentOS7
  • MongoDB running as a service, in a container of in a virtual machine [closed]
  • how can I allow access to only one URL from a docker container
  • Docker Proxy Setup
  • Sending emails in Symfony via a docker container mail server
  • One Solution collect form web for “Equivalent of local host files for running Bluemix containers”

    You can create a volume and add the configuration files you want to persist on it. The volume is not deleted when a container instance is removed and it can be used by multiple containers.

    To create a volume you can use the following command:

    $ cf ic volume create my_volume

    Then you can create a new container and mount the volume to a path in the container, for example:

    $ cf ic run -v my_volume:/path/to/mount --name my_container my_image

    You can find more details in the following documentation link:


    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.