Skip to content

Instantly share code, notes, and snippets.

@goddoe
Created February 21, 2019 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goddoe/5f17aba5130027a8b8e51172a2e660d1 to your computer and use it in GitHub Desktop.
Save goddoe/5f17aba5130027a8b8e51172a2e660d1 to your computer and use it in GitHub Desktop.
Increase container volume(disk) size
With Centos 7 I did the following to increase the default size of the containers
Modify the docker config in /etc/sysconfig/docker-storage to add the line:
DOCKER_STORAGE_OPTIONS= - -storage-opt dm.basesize=20G
service docker stop
rm /var/lib/docker NOTE THIS DELETES ALL IMAGES etc. SO MAKE A BACKUP
service docker start
docker load < [each_save_in_backup.tar]
docker run -i -t [imagename] /bin/bash
In the bash prompt of the docker container “df -k” should show 20GB / file system size now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment