From the course: Docker for Developers: Create and Manage Docker Containers
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Solution: Using Swarm mode - Docker Tutorial
From the course: Docker for Developers: Create and Manage Docker Containers
Solution: Using Swarm mode
(bright electronic music) - [Instructor] How'd it go? For this challenge, you were tasked with using Swarm Mode for container orchestration. Let's walk through how I'd saw this challenge. First, I asked you to initialize Swarm Mode. In a terminal, type docker swarm init. That's it. You may already have Swarm initialized from the previous video. With this single command, your Docker engine becomes the manager of a new Swarm cluster. Next, I instructed you to deploy the stack for our existing web app and name it webapp. This can be done using the Docker stack deploy command, followed by the C flag and the name of our compose file, which is compose.yml, and then we add the name of the stack. In this case, it's webapp. When this is finished, you should see the stack is created in the output. Then, you needed to verify the app is working by navigating to localhost:3000. Let's also update the message to ensure the…