Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleVM Space Tips

 

Docker by default uses the space from /root directory to store the docker related date, in case /root directory is low on space the default docker directory can be changed to other directory having enough space by following the below steps:

Initial Setup:

Code Block
mkdir -p /etc/systemd/system/docker.service.d
vi /etc/systemd/system/docker.service.d/docker.conf

 Add following into above file, but prior to that please check the storage driver used by your server by running :docker info |grep "Storage Driver" and put the output i.e.. "overlay or devicemapper" in below content

Code Block
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --graphdata-root=<dir_having_enough_space> --storage-driver=<output of docker info |grep "Storage Driver">

 Save the file and run below commands:

Code Block
sudo systemctl stop docker
sudo systemctl daemon-reload
sudo systemctl start docker

...