Skip to content

Updates on implementation of slave and the fashion of docker deployment

Xin Wang edited this page Jul 23, 2020 · 2 revisions

About docker-engine API and docker-engine SDK

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.

Modification on implementation logic over docker deployment and monitoring

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.