Lets create some application files, assuming we will be working with a Python application Create python app file vim app.py from flask import Flask app = Flask(__name__) @app.route(‘/’) def counter(): return ‘0’ save the file ESC + wq! Create python app dependency definition file vim requirements.txt Flask==0.12 save the file ESC + wq! Now …
Configuring A Swarm Manager Install Docker on Ubuntu 18.04 Be sure to use the private IP (NOT the public IP) for the –advertise-addr: docker swarm init –advertise-addr <swarm manager private IP> This shows some basic information about the current status of the swarm: docker info List the current nodes in the …
Install required packages: sudo apt-get update sudo apt-get -y install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common Add the Docker GPG key and repo: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository \ “deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable” …
Please refer this GitHub repo for source code:Â https://github.com/webmagicinformatica/Dockerizing-Dotnet-Application
Please refer this GitHub repo for source code:Â https://github.com/webmagicinformatica/simple-node-js-react-npm-app
Please refer this GitHub repo for source code: https://github.com/webmagicinformatica/Dockerizing-Django-Application