Skip to content

Files

Latest commit

2d0cf78 · Jun 26, 2021

History

History

Docker_Control_panel

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 26, 2021
Jun 26, 2021
Jun 26, 2021
Jun 26, 2021
Jun 26, 2021

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