Launching multi-containers at a time - Docker stacks - Printable Version +- Hilscher Community Forum (https://forum.hilscher.com) +-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html) +--- Forum: Software (https://forum.hilscher.com/forum-5.html) +--- Thread: Launching multi-containers at a time - Docker stacks (/thread-447.html) |
Launching multi-containers at a time - Docker stacks - Armin@netPI - June-4th-2019 "A tool for defining and running multi-container Docker applications", says the Docker Compose definition and yes it is indeed a second tool named "docker-compose" that needs to be installed next to "docker" tool to participate from deploying multiple containers at a time. On native machines it is no problem to post install docker-compose but on netPI it is not there. But the good thing is deploying a stack of applications at a time is supported by netPI as well using the "stacks" feature of standard Docker. Lean more here about the difference between stacking and composing. To use the stacks function on netPI open the Docker web GUI portainer.io and then click the menu item "Stacks". Click "+Add stack" and check the "Web editor" feature in the middle and copy and paste the content of your compose YAML file into the web editor frame. Finally click "Deploy the stack". Since Docker compose often starts many containers at a time you have to patiently wait for downloading the container images the first time you use this function. Here is how a typical compose file content looks like: Code: version: "2"
|