Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Cannot docker load < HDP_2.5_docker.tar on Centos7 virtual machine

avatar
Expert Contributor

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

1 ACCEPTED SOLUTION

avatar
Expert Contributor

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.

View solution in original post

14 REPLIES 14

avatar
Expert Contributor
I did the following, and overlay was changed...
ExecStart=/usr/bin/docker daemon -H fd:// --storage-driver=overlay


sudo systemctl daemon-reload
sudo systemctl restart docker
sudo docker info

avatar
Expert Contributor

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.

avatar
Super Guru
@Marcia Hon

I'm glad you were able to get things working!

avatar
Super Collaborator

Hi All,

I was able to resolve this -

by adding this line in in docker.service in /lib/systemd/system

ExecStart=/usr/bin/dockerd --graph="/datadrive/docker-data" --storage-opt=dm.basesize=50G

[root@docker datadrive]# docker load < HDP_2.5_docker.tar b1b065555b8a: Loading layer [==================================================>] 202.2 MB/202.2 MB 0b547722f59f: Loading layer [==================================================>] 13.84 GB/13.84 GB 99d7327952e0: Loading layer [==================================================>] 234.8 MB/234.8 MB 294b1c0e07bd: Loading layer [==================================================>] 207.5 MB/207.5 MB fd5c10f2f1a1: Loading layer [==================================================>] 387.6 kB/387.6 kB 6852ef70321d: Loading layer [==================================================>] 163 MB/163 MB 517f170bbf7f: Loading layer [==================================================>] 20.98 MB/20.98 MB 665edb80fc91: Loading layer [==================================================>] 337.4 kB/337.4 kB Loaded image: sandbox:latest

Thanks,

Avijeet

avatar
Super Guru

@Marcia Hon

I wrote an HCC article that walks you through the process of increasing the base size of the CentOS 7 docker vm image. This is the preferred method for making these changes.

https://community.hortonworks.com/content/kbentry/65714/how-to-modify-the-default-docker-configurati...