Support Questions

Find answers, ask questions, and share your expertise

Can't install Docker

Rising Star

Due to "No Space" issue I changed the installation directory but after that I am unable to start docker service.

root@ip-10-74-61-188:/apps/opt # docker load < HDP_2.5_docker.tar.gz
Error processing tar file(exit status 1): write /9741599793f1189469b2428f2dc6d95748c24d953401847a066a7f1e16408c72/layer.tar: no space left on device


root@ip-10-74-61-188:/apps/opt # docker info | grep "Docker Root"
Docker Root Dir: /var/lib/docker


To get it fixed I did below. But after below changes docker is not starting.

 mkdir -p /etc/systemd/system/docker.service.d
 vi /etc/systemd/system/docker.service.d/docker.conf
add  below < all of it >
-----------------------------------------------------------------------------------------------------------------
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --graph="/apps/opt" --storage-opt=dm.basesize=60G
------------------------------------------------------------------------------------------------------------------
Restart Docker
sudo systemctl daemon-reload
sudo systemctl restart docker
2 REPLIES 2

Rising Star

@Michael Young

I have follwed the steps mentioned in ur blog, but no luck . After those change docker is not at all starting

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

root@ip-10-74-61-188:/root # systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/docker.service.d
           └─docker.conf, http-proxy.conf
   Active: failed (Result: start-limit) since Thu 2017-04-20 04:07:50 EDT; 21s ago
     Docs: https://docs.docker.com
  Process: 16095 ExecStart=/usr/bin/dockerd --graph="/apps/opt/docker" --storage-opt=dm.basesize=60G (code=exited, status=1/FAILURE)
 Main PID: 16095 (code=exited, status=1/FAILURE)


Apr 20 04:07:49 ip-10-74-61-188.ebiz.verizon.com systemd[1]: Failed to start Docker Application Container Engine.
Apr 20 04:07:49 ip-10-74-61-188.ebiz.verizon.com systemd[1]: Unit docker.service entered failed state.
Apr 20 04:07:49 ip-10-74-61-188.ebiz.verizon.com systemd[1]: docker.service failed.
Apr 20 04:07:50 ip-10-74-61-188.ebiz.verizon.com systemd[1]: docker.service holdoff time over, scheduling restart.
Apr 20 04:07:50 ip-10-74-61-188.ebiz.verizon.com systemd[1]: start request repeated too quickly for docker.service
Apr 20 04:07:50 ip-10-74-61-188.ebiz.verizon.com systemd[1]: Failed to start Docker Application Container Engine.
Apr 20 04:07:50 ip-10-74-61-188.ebiz.verizon.com systemd[1]: Unit docker.service entered failed state.
Apr 20 04:07:50 ip-10-74-61-188.ebiz.verizon.com systemd[1]: docker.service failed.



@Dinesh Das

Can you share your full docker.conf file? Looking at what you pasted, you may be missing the --storage-driver=overlay option:

ExecStart=/usr/bin/dockerd --graph="/mnt/docker-data"--storage-driver=overlay --storage-opt=dm.basesize=30G

You can also try running the command on the command line to see if you get better error logs.