refacoring to use docker 'private' api