partial implementation based on docker tcp protocol