SharkLaser
SharkLaser

Reputation: 773

Can dockerized containers truly run on any Linux node?

Can docker images created with one version of linux (say ubuntu) be run without problem on ANY other version of Linux? i.e. CentOS?

So far I have not had problems in my testing but I am a new to this.

I'd like to know if there are any specific use cases that might make a Docker container non-functional on a host node due to the host's Linux version.

Thank you

Upvotes: 2

Views: 460

Answers (2)

larsks
larsks

Reputation: 311606

Can docker images created with one version of linux (say ubuntu) be run without problem on ANY other version of Linux? i.e. CentOS?

Older kernels may not have the necessary namespace support for Docker to operate correctly, although at this point Docker seems to run fine on the current releases of most common distributions.

Obviously the host must be the appropriate architecture for whatever you're running in the container. E.g., you can't run an ARM container on an x86_64 host.

If you are running tools that are tighly coupled to a particular kernel version, you may run into problems if your host kernel is substantially newer or older than what the tools expect. E.g., you have a tool that wants to use ipset, but ipset support is not available in your host kernel.

Upvotes: 5

Adrian Mouat
Adrian Mouat

Reputation: 46480

You're only likely to have an issue if you have code that relies on a kernel feature that isn't present on another host. This is certainly possible, but unusual in everyday usage.

Upvotes: 0

Related Questions