1

There is a datastorage, an mysql container, a php and a nginx. Is it possible to let these processes run on different oses? So one is on debian, the other on centos and so on?

Example

this one is debian

docker run --name sql -d buildsql 

this one is centos

docker run --name php --linked sql:db -d buildphp 
1
  • Well since one process of a container is linked into another I though maybe they have to share the same kind of calls. For instance, in a php-container calling the sql, from the sql container. Commented Jul 18, 2015 at 17:32

1 Answer 1

1

Containers talk to each other over the network, so they are normally unaware of the OS being used by other containers, in exactly the same way that your browser doesn't really care about the OS of the webservers it talks to.

Most of the official images are based on Debian, so you quite often find your containers are all running Debian, but there's no need for this to be true. Some containers don't have an OS at all and just contain a binary that gets run when the container starts.

In short, there is no problem in using different OSs, unless you have some funky application specific problem with networking.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.