- Install ubuntu.
- Install docker.io
- add the apt repo and install the custom upstream kernel builds Daily Ubuntu Kernel Builds - Now With 100% More APT Repo!
- set iptables to legacy mode:
update-alternatives --config iptables
- Reboot
- What you may also want to do is enable binfmt to allow you to run x86_64 and arm containers as not everything is built for riscv.
docker run --name binfmt --privileged tonistiigi/binfmt:qemu-v6.1.0 --install all
There are not that many choices for base images, I’m usually using ubuntu and they do not regularly build for riscv.
They created a build at the end of last year that works fine so you may want to use the tag: ubuntu:lunar-20221216.