OPS635 Docker Lab: Cluster Management Using Docker
Deploying services as containers in a swarm can make it easy to rapidly deploy it across your network, and to scale it up and down as needed.
- You must have an installed host, with at least three virtual machines.
- Each machine must be running an up-to-date version of CentOS.
- One Solid State Drive (SSD), minimum capacity 240GB, in a USB3 Enclosure.
Investigation 1: Running Docker Containers
- Install Docker on one of your virtual machines.
- Note: Do not use Docker on your host, as it may interfere with other services covered in this course.
- Note2: Do not install Docker from the default CentOS repository! Refer to your lecture notes and slides for the current correct method.
- Run the 'hello-world' image to ensure your installation is working.
- Feel free to remove the container and image afterwards.
Investigation 2: Deploying a Container From a Custom Image
- Run a container using the existing image for httpd.
- Make some changes to the index.html file by using docker exec (The exact content is not important just include some text that says ‘version 1’, I just want to see that you can modify it).
- Commit these changes and push your image to docker hub with the tag v1.
Investigation 3: Managing how images are deployed
- Write a compose file that will deploy one copy of your container onto each of your machines.
- Demonstrate your Swarm working in class.
- Upload your Compose file to Blackboard.