Skip to content

ALFAar7/dockerinspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Inspector

This project is a Python for inspect your running container over the server.

Gitpod Contributions welcome

Installation

Use the package manager pip to install dockerinspector.

$ git clone https://github.com/ALFAar7/dockerinspector.git
$ pip install -r requirement.txt
$ flask run

Usage

$ git clone https://github.com/ALFAar7/dockerinspector.git
$ docker build -t dockerinspector:v0.1
$ docker run -d -v /var/run/docker.sock:/var/run/docker.sock -p 5000:5000 --name dockerinspecotr dockerinspector:v0.1

Test

$ curl -X GET http://<domain>.exmaple.com/

Response:

{"container id" : "8934jf9s0dfik2093", "Container name" : "docker inspecotr" };
$ curl -X GET http://<domain>.exmaple.com/8934

Response:

{"AttachStderr":true,"AttachStdin":false,"AttachStdout":true,"Cmd":["npm","start"],"Domainname":"","Entrypoint":null,"Env":["OSRM_BACKEND=http://172.16.52.116:5000","PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","OSRM_CENTER=38.8995,-77.0269","OSRM_ZOOM=13","OSRM_LANGUAGE=en","OSRM_LABEL=Car (fastest)"],"ExposedPorts":{"9966/tcp":{}},"Hostname":"7c8ab94d6041","Image":"osrm/osrm-frontend","Labels":{},"OnBuild":null,"OpenStdin":false,"StdinOnce":false,"Tty":false,"User":"","Volumes":null,"WorkingDir":"/src"}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GPLv3

About

python flask project for inspect of your running containers on server.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors