Resize Docker Storage

File based storage

Stop docker and orc services

shell

1systemctl stop orc docker.socket docker

systemctl stop orc docker.socket docker

/**

  • Reset the text fill color so that placeholder is visible */ .npm__react-simple-code-editor__textarea:empty { -webkit-text-fill-color: inherit !important; }

/**

  • Hack to apply on some CSS on IE10 and IE11 / @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { /*

    • IE doesn't support '-webkit-text-fill-color'

    • So we use 'color: transparent' to make the text transparent on IE

    • Unlike other browsers, it doesn't affect caret color in IE */ .npm__react-simple-code-editor__textarea { color: transparent !important; }

.npm__react-simple-code-editor__textarea::selection { background-color: #accef7 !important; color: transparent !important; } }

Create new file with new size and format it in XFS filesystem

Shell

1fallocate -l 500G /docker-data-new.img 2mkfs -t xfs /docker-data-new.img

fallocate -l 500G /docker-data-new.img mkfs -t xfs /docker-data-new.img

/**

  • Reset the text fill color so that placeholder is visible */ .npm__react-simple-code-editor__textarea:empty { -webkit-text-fill-color: inherit !important; }

/**

  • Hack to apply on some CSS on IE10 and IE11 / @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { /*

    • IE doesn't support '-webkit-text-fill-color'

    • So we use 'color: transparent' to make the text transparent on IE

    • Unlike other browsers, it doesn't affect caret color in IE */ .npm__react-simple-code-editor__textarea { color: transparent !important; }

.npm__react-simple-code-editor__textarea::selection { background-color: #accef7 !important; color: transparent !important; } }

Mount new filesystem on temporary folder and move docker data

Shell

1mount /docker-data-new.img /mnt 2mv /var/lib/docker/* /mnt

mount /docker-data-new.img /mnt mv /var/lib/docker/* /mnt

/**

  • Reset the text fill color so that placeholder is visible */ .npm__react-simple-code-editor__textarea:empty { -webkit-text-fill-color: inherit !important; }

/**

  • Hack to apply on some CSS on IE10 and IE11 / @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { /*

    • IE doesn't support '-webkit-text-fill-color'

    • So we use 'color: transparent' to make the text transparent on IE

    • Unlike other browsers, it doesn't affect caret color in IE */ .npm__react-simple-code-editor__textarea { color: transparent !important; }

.npm__react-simple-code-editor__textarea::selection { background-color: #accef7 !important; color: transparent !important; } }

Replace filesystem

Shell

1umount /mnt 2umount /var/lib/docker 3sed -i 's|docker-data|docker-data-new|' /etc/fstab 4mount /var/lib/docker

umount /mnt umount /var/lib/docker sed -i 's|docker-data|docker-data-new|' /etc/fstab mount /var/lib/docker

/**

  • Reset the text fill color so that placeholder is visible */ .npm__react-simple-code-editor__textarea:empty { -webkit-text-fill-color: inherit !important; }

/**

  • Hack to apply on some CSS on IE10 and IE11 / @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { /*

    • IE doesn't support '-webkit-text-fill-color'

    • So we use 'color: transparent' to make the text transparent on IE

    • Unlike other browsers, it doesn't affect caret color in IE */ .npm__react-simple-code-editor__textarea { color: transparent !important; }

.npm__react-simple-code-editor__textarea::selection { background-color: #accef7 !important; color: transparent !important; } }

Remove old filesystem and start docker and orc services

Last updated