rewrite for docker image