Docker on XCP-ng
-
There are some use cases from orchestration perspective. E.g running dom0 services in containers to enhance dom0 security or something like running rook+ceph to build HCI but its new design.
-
I would prefer dedicated domain for that. The trend is to dis-aggregate the dom0 as possible. This is the Xen way and more logical than using containers.
-
Stub-domains are still far from reality. Or not ?
-
XAPI is being modified as we speak to support storage domains.
-
So to be clear, are there any plans as of right now to support Dockers on xcp-ng natively?
-
-
What do you mean by "natively"?
-
I run an Ubuntu 20.04 LTS virtual machine that has all of my docker containers running... One of the containers is Portainer, which provides a nice web gui to manage the docker containers.
I see @olivierlambert mentioned a plug-in that makes the containers visible to XO. I wasn't aware such a thing exists, but I'm going to go google it now and see if I can get that working...
-
-
I tried the method you linked to with github. I was excited at first when I saw the containers tab in the UI. Later I created a number of docker containers and such within the VM. I came back later to the XO UI and saw none of the new containers. This feature seems a little bit borked to me.
-
You should have a Docker tab displayed, if not, the plugin isn't correctly installed.
-
All I have is a container tab. I tried to upload a jpeg screenshot but for some reason your forums isn't taking it and I'm getting a lot of pop up errors trying to insert the image. I followed the instructions linked by @jmccoy above. I already had an existing VM. Do you have any additional instructions?
By the way -- the error on the image upload was the following:
Something went wrong installing the "sharp" module /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/share/nginx/html/forum/node_modules/sharp/build/Release/../../vendor/lib/libpng16.so.16) - Remove the "node_modules/sharp" directory then run "npm install --ignore-scripts=false --verbose" and look for errors - Consult the installation documentation at https://sharp.pixelplumbing.com/install - Search for this error at https://github.com/lovell/sharp/issues
-
Here is my screenshot:
The listed containers don't exist on the host anymore.
-
XO is just getting the output of the Docker plugin installed on the host. You can check that by doing the call with
xe
.So the problem is more likely to be inside the plugin or the connection with the OS itself.
-
If XCP-NG doesn't support Docker, can you tell me which kernel supports Docker.
-
This sentence doesn't make sense. You can run Docker in any VM on top of Xen.
-
@olivierlambert @olivierlambert I want to install docker on XCP-ng. Not on the VM on top of XCP. Is there any solution to do so??? Please suggest
-
-
@ganeshb This is NOT a good idea. In fact, that's a very bad idea for a lot of reasons.
Dom0 is already a VM, so installing Docker in there or in a "normal" guest is the same thing, except that's a bad security thing to install it inside a privileged environment.
-
A reminder:
There's no host, everything is a VM.