Docker command line options

docker run 

--rm 
--name fastqc-ab 
-u="$(id -u):$(id -g)" 
-w="/data/" 
-v ~/data/:/data 

quay.io/biocontainers/fastqc:0.11.9--0 

/bin/bash -c "fastqc WT*.fq.gz"

Why do we use the following options?

— rmcontainer removed after execution completed
-uuse user and group ID from the host
-wuse working directory in container
-v mount data folder from host to container, file exchange
–nameown name of container

From within the container, we run the bash command to be able to execute fastqc on all the files following the specified pattern.