added dockercook sync, speed up docker images and add backwards compat for -p