split docker.sh into two scripts