refine docker adapter