Navigation

    XCP-ng

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Docker on XCP-ng

    Compute
    7
    18
    1527
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      thisisbenwoo last edited by

      I've been looking up running (more to the point, managing) Docker on XCP-ng. I currently have an Ubuntu 20.04 with Docker on it, and it works just fine. Would love to be able to manage everything from one frontend, but that might be too much of a tall order.

      So, my question is, instead - what's the difference between my DIY approach, and the "Docker on XCP-ng" guide, which relies on a now defunct OS?

      Many thanks

      1 Reply Last reply Reply Quote 0
      • olivierlambert
        olivierlambert XCP-ng Team Admin Vates Team last edited by

        You can have an Ubuntu OS with Docker and detected by the plugin (then containers visible from XO). However, it's pretty simple, and we don't have a high demand on that kind of stuff (for now).

        Do you have a more specific use case?

        1 Reply Last reply Reply Quote 0
        • R
          r1 XCP-ng Team last edited by

          FYI: Current XCP-ng kernel does not allow docker to run. It needs some kernel features to be enabled. Neither main kernel or kernel-alt would allow it.

          1 Reply Last reply Reply Quote 0
          • olivierlambert
            olivierlambert XCP-ng Team Admin Vates Team last edited by

            Yeah and it doesn't make sense to run Docker in the dom0. It's dangerous (security wise) and it's already a VM. So only running Docker in a "normal" VM is making sense.

            1 Reply Last reply Reply Quote 0
            • R
              r1 XCP-ng Team last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • olivierlambert
                olivierlambert XCP-ng Team Admin Vates Team last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • R
                  r1 XCP-ng Team last edited by

                  Stub-domains are still far from reality. Or not ? 🙂

                  1 Reply Last reply Reply Quote 0
                  • olivierlambert
                    olivierlambert XCP-ng Team Admin Vates Team last edited by

                    XAPI is being modified as we speak to support storage domains.

                    1 Reply Last reply Reply Quote 0
                    • D
                      dan2462 last edited by

                      So to be clear, are there any plans as of right now to support Dockers on xcp-ng natively?

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        dan2462 @dan2462 last edited by

                        @olivierlambert

                        1 Reply Last reply Reply Quote 0
                        • olivierlambert
                          olivierlambert XCP-ng Team Admin Vates Team last edited by

                          What do you mean by "natively"?

                          1 Reply Last reply Reply Quote 0
                          • J
                            jefftee last edited by

                            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...

                            J 1 Reply Last reply Reply Quote 0
                            • J
                              jmccoy555 @jefftee last edited by

                              @jefftee https://github.com/xcp-ng/xcp/wiki/Docker-in-XCP-ng

                              K 1 Reply Last reply Reply Quote 0
                              • K
                                kevdog @jmccoy555 last edited by kevdog

                                @jmccoy555

                                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.

                                1 Reply Last reply Reply Quote 0
                                • olivierlambert
                                  olivierlambert XCP-ng Team Admin Vates Team last edited by

                                  You should have a Docker tab displayed, if not, the plugin isn't correctly installed.

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    kevdog last edited by kevdog

                                    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
                                    
                                    K 1 Reply Last reply Reply Quote 0
                                    • K
                                      kevdog @kevdog last edited by

                                      Here is my screenshot:

                                      Screen Shot 2020-10-30 at 6.53.38 PM.png

                                      The listed containers don't exist on the host anymore.

                                      1 Reply Last reply Reply Quote 0
                                      • olivierlambert
                                        olivierlambert XCP-ng Team Admin Vates Team last edited by

                                        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.

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        XCP-ng Pro Support

                                        XCP-ng Pro Support