Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1006 Bytes

File metadata and controls

46 lines (33 loc) · 1006 Bytes

Docker UI using FLASK and javascript

Following requirement you should satisfy for running this project.

  1. Flask
  2. Docker

using following command you can install Flask:-

pip install Flask

Download Docker from here:-

https://download.docker.com/linux/

change following files in docker daemon and start daemon:-

Navigate to /lib/systemd/system in your terminal and open docker.service file
vim /lib/systemd/system/docker.service

Find the line which starts with ExecStart and append -H=tcp://0.0.0.0:2375

replace 0.0.0.0 with docker host ip in your flask file 

Reload the docker daemon
systemctl daemon-reload

Restart the container
systemctl restart docker

Start the apache server
systemctl start httpd

copy docker.py file to /var/www/cgi-bin/
and file should be executable

Now using Following command run your application:-

set FLASK_ENV = development or production
flask run