Open bofm opened 9 years ago
Modify Docker options in the /etc/default/docker
file on host:
DOCKER_OPTS="--storage-driver=devicemapper --storage-opt dm.basesize=20G"
After building, the size of the oracle-12c docker image is 18GB. Is it the average size that you get?
It can be compressed; see http://jasonwilder.com/blog/2014/08/19/squashing-docker-images/ and/or https://intercityup.com/blog/downsizing-docker-containers.html
Op di 14 apr. 2015 om 16:11 schreef sheikhsameer1609 < notifications@github.com>:
After building, the size of the oracle-12c docker image is 18GB. Is it the average size that you get?
— Reply to this email directly or view it on GitHub https://github.com/wscherphof/oracle-12c/issues/5#issuecomment-92866765.
Thank you wscherphof.. It helped me to squash the image by 50%.
Yay :-)
Op do 16 apr. 2015 17:42 schreef Sameer Sheikh notifications@github.com:
Thank you wscherphof.. It helped me to squash the image by 50%.
— Reply to this email directly or view it on GitHub https://github.com/wscherphof/oracle-12c/issues/5#issuecomment-93767135.
Based on the comments here, I found what I needed to do (To increase the size). the dm.basesize option is correct, but you need to remove any pre-created stuff. easiest way is to rm -rf /var/lib/docker as per this document https://github.com/docker/docker/blob/master/daemon/graphdriver/devmapper/README.md
You may find out that @bofm 's fix won't work on host machines that run systemd, because some docker.service files don't load (or include) /etc/default/docker
. I fixed it by changing OPTIONS
line in included file /etc/sysconfig/docker
to include given options.
[FATAL] [INS-32021] Insufficient disk space on this volume for the selected Oracle home. CAUSE: The selected Oracle home was on a volume without enough disk space. ACTION: Choose a location for Oracle home that has enough space (minimum of 6,553MB) or free up space on the existing volume.
root@4e..... /]# df -h Filesystem Size Used Available Use% Mounted on tmpfs 1.8G 179.5M 1.6G 10% / tmpfs 1001.1M 0 1001.1M 0% /dev/shm /dev/sda1 17.9G 12.3G 4.6G 73% /mnt/sda1 cgroup 1001.1M 0 1001.1M 0% /sys/fs/cgroup c/Users 234.8G 116.3G 118.4G 50% /c/Users /dev/sda1 17.9G 12.3G 4.6G 73% /mnt/sda1/var/lib/docker/aufs
Was not able to find the /etc/sysconfig/docker or the /etc/default/docker. I am using docker on win7 as the host machine.
Trying to build the image, the installation of Oracle Database fails.