Home > Back-end >  Can a docker image be deployed on a different operating system?
Can a docker image be deployed on a different operating system?

Time:03-08

A similar question has been asked here, but I would like to confirm this further by relating my question to also private repositories rather than public ones only in Docker Hub.

Assuming that Docker has been installed on both the source and destination machines, which of the following is true?

  1. The source and destination machines must have the same OS, OS distribution, and OS version.
  2. The source and destination machines must have the same OS and OS distributions, but the OS versions can be different.
  3. The source and destination machines must have the same OS, but the OS distributions and OS versions can be different.
  4. Ths source and destination machines can have different OSs, OS distributions, OS versions always.
  5. The source and destination machines can have different OSs sometimes.

By a different OS I am referring to using two different operating systems among Windows, Linux, and Mac.

CodePudding user response:

Your answer is: Your system must use a recent version of Docker or close version from one host to another, and have a similar or close Kernel version, by using MacOS up to date, docker windows up to date and a linux distribution in LTS you should be pretty sure that your container is working on all your hosts

  • Related