Can a docker image based on Ubuntu run in Redhat?

后端 未结 2 2070
悲哀的现实
悲哀的现实 2021-02-19 20:58

Read some PPTs, it seems that one container can run on different linux vendors. Is is true?

2条回答
  •  执念已碎
    2021-02-19 21:22

    Yes, for most applications this works. The kernel is whatever you are really running on (RedHat in your example) while the userspace is supplied by the container (Ubuntu).

    Most Linux kernel variants are sufficiently similar that applications will not notice. However if the code relies on something specific in the kernel that is not there, Docker can't help you.

    Docker itself relies on certain minimum kernel features, version 3.8 at the time of writing. https://docs.docker.com/engine/installation/binaries/

提交回复
热议问题