Docker command line options

docker run 

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

/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.