Spin off another container on host machine from an existing container

Viewed 578

I am currently using Docker Desktop for Mac.

My requirement is to spin off a container from another container.

Situation:

Container A has a service running which upon request looks for a swarm manager and spin off another container B. I have started single node swarm manager on my machine. I can not use host network_mode because docker for MAC exposes light weight linux vm as host and not my actual localhost. I have tried this also : https://forums.docker.com/t/access-host-not-vm-from-inside-container/11747/7

Any possible solution?

1 Answers
Related