How to circumvent “Read-only file system” error on Docker version 0.11 or greater when running sysctl -w during an image build?

I’m trying to build an oracle-xe Docker image to be used on acceptance tests. The build process is aborted after trying to install Oracle XE 11g using the following command inside my Dockerfile:

RUN yum localinstall -y /tmp/oracle-xe-11.2.0-1.0.x86_64.rpm

If I disable the script execution during rpm installation Oracle XE doesn’t work properly, so it is not an option.

  • Spin down unused Dokku containers (and spin them up upon access)
  • How can I test all ulimits of docker?
  • Add SSL support to docker container
  • docker userdefined network - no connection to the outside world
  • What is happening in my Docker when deploying with rocketeer?
  • How to launch an app via Docker on every Pull Request?
  • Downgrading to Docker version 0.10 or under is not an option either, because I need the “host network” new feature.

  • docker segmentation fault (core dumped), what to do in this situation?
  • Error while running docker run hello-world
  • Debian : Using a cron task on Docker
  • Unable to access Jupyter notebook in the web browser
  • Mount data volume to docker with read&write permission
  • Docker mesosphere/chronos container fails immediately after launch
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.