docker manager: refactored client.