Check whether a docker container exists before checking arguments