This example takes olddisk.qcow2 and resizes it into newdisk.qcow2,
extending one of the guest's partitions to fill the extra space.
This file contains hidden or 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
| FROM ubuntu:20.04 | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update | |
| RUN apt-get install -y testdisk wget gnupg | |
| RUN wget -q -O - https://download.bell-sw.com/pki/GPG-KEY-bellsoft | apt-key add - | |
| RUN echo "deb [arch=amd64] https://apt.bell-sw.com/ stable main" > /etc/apt/sources.list.d/bellsoft.list | |
| RUN apt-get update |