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.

  • docker run with volume changes directory permission to root
  • Running Jenkins in Docker - Exits immediately
  • Push a Docker Compose to a Production Server
  • External static IP with Docker
  • Django celery in docker looking for already deleted tasks
  • boot2docker certificate error
  • Downgrading to Docker version 0.10 or under is not an option either, because I need the “host network” new feature.

  • How to configure Apache running in a docker container to log both to files and console at the same time?
  • Exclude Auto Import of Docker Plugin in Gradle
  • Kubernetes can't start due to too many open files in system
  • Management container instances using docker socket communication
  • Shutting down Docker containers via supervisor
  • WSO2 not compatible with Docker
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.