rewrite docker