This project is a Python for inspect your running container over the server.
Use the package manager pip to install dockerinspector.
$ git clone https://github.com/ALFAar7/dockerinspector.git
$ pip install -r requirement.txt
$ flask run$ 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
$ 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"}Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.