DevOps is a very, very important topic in the world of IT these days. It's actually a sophisticated topic because it involves having a knowledge of coding/scripting, networking, and the cloud (because so much of the DevOps work that goes on has to do with running containers in the cloud).
In this video, we're going to back off of the multiple VMs idea we'd been pursuing when talking about Linux Cluster Computing, and simply satisfy ourselves with one large VM that can handle multiple Docker containers inside of it. We'll use a configuration management tool called Ansible to create the containers for us.
Please refer to my previous Linux Cluster Computing videos for detailed instructions on how to install Docker. You will need a YAML (aka YML) script, which I've pasted below.
====================================
name: Deploy multiple nginx containers
hosts: localhost
connection: local
gather_facts: no
tasks:
name: Run nginx containers
docker_container:
name: "nginx{{ item }}"
image: nginx
state: started
ports:
"{{ 8080 + item }}:80"
loop: [1, 2, 3]