HI all , i need help on a question like Can we have a single container with mult . . .

khasim_soudagar:
HI all , i need help on a question like
Can we have a single container with multiple image like nginx + Redis + alpine/mesosphere

Can anyone pls help here.

Manas Sahoo:
Even I thought of to ask this question

Dr Ganesh Neelakanta Iyer:
Look at multiple containers section in the videos. Official doc here https://kubernetes.io/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume/|https://kubernetes.io/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume/

Basavraj Nilkanthe:
@khasim_soudagar … as long as your building custom image either from ubunto or any other Linux base image… Creating dockerfile by mentioning multiple command to start Nginx, alpine, busybox etc in entrypoint instruction… You should able to run multiple process Id in single container but this is not recommended. Try to build single container to isolate single process id

khasim_soudagar:
thank you @Dr Ganesh Neelakanta Iyer and @Basavraj Nilkanthe for your reply

Manas Sahoo:
@Dr Ganesh Neelakanta Iyer, I think the link which you shared is for multi-containers with multiple images in a single pod, Not single container with multiple images in a pod

Dr Ganesh Neelakanta Iyer:
For a single container to have multiple images, you might need to explore something like docker compose. https://docs.docker.com/compose/ also see https://stackoverflow.com/questions/45229777/multiple-images-inside-one-container/45229934