Created on 11-04-2016 05:25 PM - edited 09-16-2022 03:46 AM
Hello,
I have looked all over the place and have tried everything I have found.
I cannot get the load to work.
I get the following message:
[user01@docker01 hortonworks_hadoop]$ sudo docker load < HDP_2.5_docker.tar b1b065555b8a: Loading layer 202.2 MB/202.2 MB 3901568415a3: Loading layer 10.37 GB/13.85 GB ApplyLayer exit status 1 stdout: stderr: write /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/jre/lib/amd64/server/libjvm.so: no space left on device
I tried:
a. @ /etc/sysconfig/docker add : other_args="-g /var/lib/docker"
b. @ /etc/sysconfig/docker-storage add : DOCKER_STORAGE_OPTIONS="--storage-opt dm.basesize=30G"
c. restart the daemons
Nothing works.
Please let me know if there are other solutions that would solve this.
Thanks,
Marcia
Created 11-08-2016 05:00 PM
Thank you Michael and Glupu!!!
It now is working!!!
I did changes a and b. Plus the overlay changes. And also deleted /var/lib/docker .
Thanks so much!
I have another issue which is with the start_sandbox.sh file. I will create another thread.
Created 11-04-2016 05:37 PM
Also, I'm using Centos 7 and docker v1.12.3 ...
Created 11-07-2016 05:29 PM
I encountered the same problem on Debian Jessie (Stable), Docker version 1.12.3, build 6b644ec. There is no file called "docker-storage" to be found on my system. Obviously, there is no "/etc/sysconfig/docker" either. Any help is appreciated.
Created 11-08-2016 10:30 PM
Things worked after I did "systemctl stop docker; dockerd --storage-opt dm.basesize=50G; docker load < /path/to/HDP_2.5_docker.tar.gz".
Created 11-08-2016 02:25 AM
For both options a and b, did you remove the /var/lib/docker/* directory where the image file is created? You have to remove that file and then restart the daemons. If you don't remove the file, Docker will not increase the size automatically.
You can run docker info before and after this process to see how much space is available for Docker.
NOTE: You will lose your images and containers when you delete the contents of that directory. So backup any containers or images you want to keep.
Created 11-08-2016 02:48 PM
Hello, what storage driver are you using? You can run "sudo docker info" to get that, for example in my case it's : "Storage Driver: aufs"; In case yours says devicemapper you need to change it to overlayfs on centos7 since the image is bigger than 10GB which is the hard limit for the devicemapper.
Created 11-08-2016 03:08 PM
I'm not certain how to do this change. Is it at : /etc/sysconfig/docker or /etc/sysconfig/docker-storage or /etc/default/docker ... etc... I understand that the command is supposed to be : DOCKER_OPTS="--storage-driver=overlayfs"
Created 11-08-2016 03:17 PM
What I did was change it in the systemd file:
[root@sandbox multi-user.target.wants]# pwd
/etc/systemd/system/multi-user.target.wants
[root@sandbox multi-user.target.wants]# vi docker.service
and changed this line like so:
ExecStart=/usr/bin/dockerd --storage-driver=overlay
Created 11-08-2016 04:25 PM
I have changed accordingly.
I restarted the daemon, however, devicemapper is still being used...
Created 11-08-2016 04:32 PM
It has changed to overlay by doing the following:
ExecStart=/usr/bin/docker daemon -H fd:// --storage-driver=overlay
sudo systemctl daemon-reload
sudo systemctl restart docker
sudo docker info