-
Notifications
You must be signed in to change notification settings - Fork 1
Updates on implementation of slave and the fashion of docker deployment
Docker-engine API: A RESTful api working via socket or http requests, which enables remote (or local) container deployment. A typical remote deployment can be glued with webpages requests for its nature.
Docker-engine SDK: confounded with API in previous research. SDK focuses on local manipulation of containers and switching of docker services.
Implementation based on previous researches ignores the socket-fashioned deploying mode, where requests are first generated from user end, then forwarded by master to slave. The requests are encoded and parsed whenever encountering a hop, which is unnecessary when remote deploying is available.
A request for deploying a docker is packaged in json format, which should be preliminarily wrapped with the destination information of the container. After received by master, it is wrapped in a GET request and sent to the destination via either socker or HTTP requests. Since the info of the container is logged inside master, container monitoring can be achieved by making a new query request via docker-engine api.