Can I populate the content of the Volume I created in Bluemix Containers?

I uploaded a Oracle11g DB image in my Bluemix Container registry.
I created a volume called oradbdata in IBM Containers using the CLI:

cf ic volume create oradbdata

Now I need to copy some content into this volume before running the container.

  • docker with ansible wait for database
  • Can't bootstrap Galera cluster using official Docker MariaDB image
  • Forward host port to docker container
  • Run VirtualBox VM as headless in Docker container
  • docker- compose error: service 'build' must be a mapper not a string error
  • How to configure NGINX routes?
  • Is there anyway to access this volume and populate its content?


  • Django can't connect to Postgres in Docker setup
  • Testing ansible playbook with systemd services in docker
  • Options -Indexes not working in .htaccess file in Docker continer
  • Bitbucket Pipelines. Cannot specify windowsservercore docker image
  • Calling a service running in a docker container from an angular2 app
  • Cannot access HTTPS service from Docker container via Virtual Box
  • 2 Solutions collect form web for “Can I populate the content of the Volume I created in Bluemix Containers?”

    When you start the container you can associate the volume to the desired container path; for example: volume oradbdata -> /var/lib/oradata. When the container then starts the /var/lib/oradata is mapped with your volume and, at that point, you can put data on it either at the start-up of the container or accessing the container via ssh.

    I suggest adding your files into the container during the container build (e.g. into a /src directory). Then use a startup script for your app. In the script you would check if the mounted directory has the file(s) you need. If not then copy things over. Something like this:

    # Test if the volume is empty
    if [ ! -f /mountpoint/testfile ]; then
        # Copy the contents from the container image into the volume
        cp -R /src/* /mountpoint
    # Now start the app here
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.