Since this page is apparently the top result on google, Heres a link to how to do it.
https://martingladdish.co.uk/technology/setting-up-docker-under-qubesos/
That page has more detail, but here are the instructions in case its down.
- Install docker engine, following the instruction on https://www.docker.com. NOT DESKTOP as that wont work in Qubes (unless you enable nested virtualization)
- Make the below /etc/docker/daemon.json
- Add "dockerd &" to your appvms (NOT TEMPLATE) /rw/config/rc.local
/etc/docker/daemon.json
{
"data-root": "/home/user/docker",
"group": "user"
}
Tried this with the debian-11 template on August 23, 2023. Martin did this with fedora-33 in 2021.
If you have trouble, you can ask for help at https://forum.qubes-os.org/
To do this in Qubes-OS 3.x, look at the history of this page.
@xahare @coderpatros actually the location of the
qubes-bind-dirs.d
moved to/usr/lib
in r4.0 - if you add50_user.conf
there instead it should all work (it does for me on a debian-based template). The new instructions for r4.0 becomes: