Docker management tools and docker Management
Shipyard
Is a Web-based Docker management tool that supports multiple hosts. It can manage containers on multiple Docker hosts in a unified manner, view images, or even build images, and provide RESTful APIs. To manage and control the Docker host, Shipyard needs to modify the default configuration on the Docker host to support remote management.
Get shipyard
docker pull shipyard/shipyarddocker pull shipyard/rethinkdb
Start a RethinkDB data volume instance
docker run -it -d --name shipyard-rethinkdb-data --entrypoint /bin/bash shipyard/rethinkdb -l
Start the RethinkDB container containing the data volume
docker run -it -P -d --name shipyard-rethinkdb --volumes-from shipyard-rethinkdb-data shipyard/rethinkdb
Shipyard
docker run -it -p 8080:8080 -d --name shipyard --link shipyard-rethinkdb:rethinkdb shipyard/shipyard
After installation, enter http: // IP: 8080/in the browser to access
The username is admin and the password is shipyard.
Management Tool-cAdvisor
By default, the monitoring chart of the cAdvisor is refreshed once per second, displaying real-time data in the last minute. The aggregated and historical data are not displayed, and there is no threshold alarm function, in addition, it cannot monitor multiple Docker hosts at the same time. However, because it is simple and convenient, and has good real-time performance monitoring capabilities, it is suitable for performance monitoring and troubleshooting in special circumstances. Google's cAdvisor is free, open-source, and easy to implement. A container can be started on each Docker host through Web port monitoring.
# Docker run -- volume =/:/rootfs: ro -- volume =/var/run: rw -- volume =/sys: ro -- volume =/var/lib/docker/:/var/lib/docker: ro -- publish = 8082: 8082 -- detach = true -- name = cadvisor google/cadvisor: latest -- port = 8082
Some of the above parameters may be related to the host operating system, need to modify, refer to the official documentation: https://github.com/google/cadvisor
Because shipyard runs on port 8080 of the local machine, the cAdvisor is changed to port 8082 above. After running, access port 8082 of the local machine. The monitoring interface is displayed.
Http:/// IP: 8082