Created
February 21, 2019 15:36
-
-
Save goddoe/5f17aba5130027a8b8e51172a2e660d1 to your computer and use it in GitHub Desktop.
Increase container volume(disk) size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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