NOOB! Single Docker Image with Multiple servers/apps

Hi,

I’m a noob to Docker but a reasonably proficient (albeit amature) PYTHON programmer.

I have played with sample images from Hub but I was wondering if and how I can get an Image with Python AND MySQL for example. All in the am Image. I believe it’s good practice to have a Python image and a MySQL image running as different docker images and network the two? but I’m curious to do it in the same container.

sorry for the 101 question

Matt

You can run multiple executables in a single container but it’s not advisable. Docker containers look like a VM, but they’re not. In essence, it’s a wrapper around an executable and its libraries. Running multiple executables in a container doesn’t make sense in that context and it’s unlikely to be any more efficient.