interacting with docker cli and api