Persisting docker images in App VM

Just like @unman I do use podman for OCI containers.

With podman-docker you get a simple alias that helps you when you follow docker based instruction manuals. You can even use docker-compose with podman. I would recommend using Fedora for that. It is as simple as:

# TemplateVM 
$ sudo dnf install podman-docker docker-compose
# App VM
$ bash <(echo "sudo systemctl enable --now podman.socket" | sudo tee -a /rw/config/rc.local)

Most oft those containers, that I am occasionally running, are rootless, which means they are running as the AppVMs user. Thus I have not applied any bind-dirs configuration. I think I have run a rootful container for something a while ago, but I have to look into whether I had to apply any bind-dirs configuration for that.

2 Likes