Single Image to run duplicate isolated containers

Hi Docker community

WARNING: Newby question alert !

Apologies if the terminology I am using isn’t technically correct…

I have a single image which deploys a stack with two containers when using docker-compose. I would like to use that same image to spin up two additional stack/containers which need to be isolated in the sense of being able to run its own config.

is there perhaps any good tutorial links you can share with me to learn how to achieve this ?

Either I misunderstand you or this is exactly what docker is for. What have you tried so far? Why do you think it is challenging?

Also what do you mean by “single image … deploys a stack”. Is it an image to start a container whcih can access to the Docker socket and start multiple containers for you?