I've been trying to install docker in the alpine dockerfile, on my local copy of the repository:
FROM alpine:latest
RUN apk add --no-cache linux-virt openrc docker
RUN rc-update add docker boot
RUN echo "root:root" | chpasswd
The problem I have currently is that, when the VM boots, the docker service cannot start. It seems to be unable to create mandatory files:

I know that I can make the filesystem writeable and successfully start the service with this script:
mount -o remount,rw /
service docker start
However, I simply cannot afford to be forced to run this every time I want to use the image! Simply rebooting makes the filesystem read-only again...
Is there a way to tell qemu to mount the file system as rw, or update the image configuration from the builder container to automate this process?
I've been trying to install docker in the alpine dockerfile, on my local copy of the repository:
The problem I have currently is that, when the VM boots, the docker service cannot start. It seems to be unable to create mandatory files:
I know that I can make the filesystem writeable and successfully start the service with this script:
However, I simply cannot afford to be forced to run this every time I want to use the image! Simply
rebooting makes the filesystem read-only again...Is there a way to tell qemu to mount the file system as rw, or update the image configuration from the builder container to automate this process?