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.

  • Logging in ASP.NET application runnin in Docker container
  • Why is my docker command from ant not executed?
  • dockerized nginx “times out” after several minutes
  • Docker on mac: How to auto restart daemon processes after a machine reboot?
  • Docker does not have default machine in Windows 10
  • Why is apt-get update failing inside of a docker container?
  • Is there anyway to access this volume and populate its content?


  • DOCKER_OPTS in Docker container 1.9.1-dind
  • SocketError: No such file or directory - connect(2) for /var/run/docker.sock
  • Private Docker Registry Not Connectible to Shell & Web Management UI?
  • Docker and nodemcu-build. Excited but unable to run it
  • Unable to use *build* object in docker-compose
  • Not able to build the docker image from git repository
  • 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.