Docker API fix

basic code. curl command has an issue, binding to a tcp port is required. but it is not advisable since it creates security issues. Need to check on that.