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

    Docker and updates

    Scheduled Pinned Locked Moved IT Discussion
    16 Posts 5 Posters 2.1k Views
    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.
    • RomoR
      Romo
      last edited by

      They way to handle security updates in the OS is to update the base image, then rebuild your application image.

      1 Reply Last reply Reply Quote 0
      • DashrenderD
        Dashrender
        last edited by

        Rebuild? Not sure what you mean?

        Also, where does your data live?

        1 Reply Last reply Reply Quote 0
        • RomoR
          Romo
          last edited by

          Data should live in data volumes and/or data volume containers, the official documentation should help.
          https://docs.docker.com/engine/userguide/dockervolumes/

          1 Reply Last reply Reply Quote 0
          • hobbit666H
            hobbit666
            last edited by

            I'm a bit confused by that graphic....

            I guess the server layer is .... well a server like Dell R710 I've got 🙂
            Then is the Host OS say ESXi??? And the Docker Engine is a VM running Linux with docker installed?

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • DashrenderD
              Dashrender
              last edited by

              That is not how I read it. I read the server layer the same as the hypervisor.

              Notice the only virtualization this graphic shows is Docker itself... That is why I assume this.

              1 Reply Last reply Reply Quote 1
              • scottalanmillerS
                scottalanmiller @hobbit666
                last edited by

                @hobbit666 said:

                I'm a bit confused by that graphic....

                I guess the server layer is .... well a server like Dell R710 I've got 🙂
                Then is the Host OS say ESXi??? And the Docker Engine is a VM running Linux with docker installed?

                Docker is a container, not a VM in the traditional sense. We used to call these "OS Containers" before the latest wave of marketing appeared. This is old tech, not new tech, so think about products we've had for decades. Like Zones and Jails.

                Containers run on an OS, not on a hypervisor. You should have your OS on a hypervisor and people normally do, but they are not showing that there at all. But it is not mislabeled. You can just as easily run Docker without a hypervisor as you can with one. Docker runs on Linux, Linux should be a VM.

                1 Reply Last reply Reply Quote 1
                • dafyreD
                  dafyre
                  last edited by

                  I think Dash's question is how do you handle the OS-Layer updates... Say you have

                  Xen -> CentOS -> Docker -> MySQL Container ...

                  What happens to the MySQL Container if the underlying CentOS is updated?

                  DashrenderD 1 Reply Last reply Reply Quote 1
                  • DashrenderD
                    Dashrender @dafyre
                    last edited by

                    @dafyre said:

                    I think Dash's question is how do you handle the OS-Layer updates... Say you have

                    Xen -> CentOS -> Docker -> MySQL Container ...

                    What happens to the MySQL Container if the underlying CentOS is updated?

                    Exactly!

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      The containers contain their own OS. So updating the base platform will not modify the containers. To update a container you update its image and redeploy.

                      1 Reply Last reply Reply Quote 0
                      • DashrenderD
                        Dashrender
                        last edited by

                        Then why do you need and OS under the containers?

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @Dashrender
                          last edited by

                          @Dashrender said:

                          Then why do you need and OS under the containers?

                          Because that's what they run on. They are containers, not VMs. How else would they run?

                          1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller
                            last edited by

                            Docker containers run their own OS but share the parent's kernel. They don't have discrete kernels. So if you want to modify the kernel itself, you have to reboot the parent and everything reboots. But libraries and such are all in the containers.

                            dafyreD 1 Reply Last reply Reply Quote 0
                            • DashrenderD
                              Dashrender
                              last edited by

                              That question seems loaded, but I'm guessing it's really not.

                              From what I can tell, the containers don't have a full OS in them, really they only have the OS components that they specifically need to get their job done. As you said, updating the OS won't affect them because the pieces needed by the container themselves are self contained - OK fine - I think I even said that in my OP or a post shortly there after.

                              Which of course means I shouldn't have said exactly to @dafyre post.

                              1 Reply Last reply Reply Quote 0
                              • dafyreD
                                dafyre @scottalanmiller
                                last edited by

                                @scottalanmiller said:

                                Docker containers run their own OS but share the parent's kernel. They don't have discrete kernels. So if you want to modify the kernel itself, you have to reboot the parent and everything reboots. But libraries and such are all in the containers.

                                Where, is the flexibility vs a straight up VM, then? Each VM also contains its own Kernel, so any tweaking that I desire can be done inside the VM without affecting the Host OS (Xen, Hyper-V, et al). I get live Migration with VMs...

                                scottalanmillerS 1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @dafyre
                                  last edited by

                                  @dafyre said:

                                  @scottalanmiller said:

                                  Docker containers run their own OS but share the parent's kernel. They don't have discrete kernels. So if you want to modify the kernel itself, you have to reboot the parent and everything reboots. But libraries and such are all in the containers.

                                  Where, is the flexibility vs a straight up VM, then? Each VM also contains its own Kernel, so any tweaking that I desire can be done inside the VM without affecting the Host OS (Xen, Hyper-V, et al). I get live Migration with VMs...

                                  Docker is about application flexibility, not OS tweaking. You can't tweak a Docker container, it is set and forget. Docker is about making deployments fast, easy and dense. The DevOps ecosystem doesn't let you tweak running systems anyway.

                                  If you want to log in and tweak running systems, you are in a snowflake systems administration model. You have to separate the two mindsets, they work on completely different problem sets.

                                  1 Reply Last reply Reply Quote 2
                                  • 1 / 1
                                  • First post
                                    Last post