Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The first part is an mqtt broker running locally into your computer (localhost) by using the image eclipse-mosquitto. Then do the following: a. Initialize a

image text in transcribedimage text in transcribedimage text in transcribed

The first part is an mqtt broker running locally into your computer (localhost) by using the image eclipse-mosquitto. Then do the following: a. Initialize a single-node Docker Swarm. Try to name the swarm. Is it possible? b. Print out the ID, name, and creation date of the Swarm. c. Creates a network named "se443_test_net", using the "overlay" driver, "global" scope, and with an IP CIDR range of 10.10.10.0/24. d. Print out the ID, name, and creation date of the network. e. Deploys a service named "broker" with three (3) replicas of the docker image. i. You will also have to configure the service to automatically restart (always). Notes regarding Docker and mqtt (All the following work on windows) Steps to run the eclipse-mosquitto broker: Create a directory mosquitto/conf/ and create the file mosquitto.conf in it, which has the two lines listener 1883 allow_anonymous true Be careful to mount the directory mosquitto/conf/mosquitto.conf of the docker image! To run the eclipse-mosquitto commands can be like the two following: docker run -it -p 1883:1883--volume //c/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf eclipse- mosquitto docker run -it -p 1883:1883--volume c: \mosquitto\config\mosquitto.conf:/mosquitto/config/mosquitto.conf eclipse- mosquitto

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions