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.

  • Docker Nginx Reverse Proxy
  • link docker containers and use wildcard subdomains
  • mysql with Exited(1) from docker
  • Same location with different proxy urls nginx
  • Docker CodeSniffer - phpcbf doesn't change files
  • Browser services' container in Docker Swarm mode
  • 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?

  • Logs not generated in docker compose
  • How to place files on shared volume from within Dockerfile?
  • Docker PostgreSQL - Scripts in /docker-entrypoint-initdb.d doesn't run
  • How to publish ports in docker files
  • What is the correct way of using a custom Dragonfly storage backend in Refinery?
  • Docker swarm over IPv6
  • 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.