Hello,
I talked with colleagues, and the idea of sharing the docker socket from a VM to the XO VM would not be doable in the near future on XCP-ng 8.3 (ask @teddyastie if you want details, I remember only the conclusion
)
So I took a shortcut - XO <--> Docker - and pushed a quick experimental branch on github, docker-experimental, https://github.com/vatesfr/xen-orchestra/tree/docker-experimental
Warning, this is experimental. ( NOT PRODUCTION ready
)
Key points:
- A container tab on each VM
- XO can connect to the VM via SSH, and reach the docker.sock
- SSH private key and passphrase are stored by XO in the same way as XCP-ng hosts credentials
- XO6 web UI and REST API
- No modification needed in XCP-ng dom0
- No modification needed in the VMs with Docker
- Any docker root or rootless is expected to work (I didn't test rootless yet)
- It should also work with a Podman socket (I didn't test yet)
- Again, it is experimental
Here are a few screenshots:
Containers tab when connected to the docker socket

Same with side panel

Actions possible, stop/start, pause, restart, delete container:

Containers tab when no yet connected, with a form to fill:

To use this, follow official installation from sources but use this experimental branch instead of master.
Again, this is still experimental, comes with no official support.
We'd be interested to here what you think of this
