Add flag for docker endpoint.
Remove console.log lines.