using image
example
$ docker run -it -v ~/some_dir:/gatk/some_dir -rm broadinstitute/gatk4
(gatk) root@f674e9d906ce:/gatk#
commands
$ docker run -it # creates interactive shell in container
$ docker run -v /dir:/gatk/dir # mount volume
$ docker pull [IMAGE] # pull an image from a registry
$ docker images # lists docker images pulled
$ docker run --rm [IMAGE] # removes a container automatically after it exits (auto clean up)
$ docker ps # list docker processes still running
$ exit