12/17/2019 - (last updated: 2019-12-17)
docker run
with -it
and --rm
options-v
optiondocker images
docker rmi IMAGE_NAME
docker container ls
with optional -a
or -aq
docker rm CONTAINER_ID
to remove a containerpull
images and use appropriate tag
if necessarySelect Docker images from Docker Hub
Use multiple Docker container to accomplish related tasks
Docker images and Docker files
Learn about, and bypass ENTRYPOINT
of Docker images
We’ll use 3 images from the Bioinformatics Docker Images Project
clustalomega - Sequence alignment - (doc)
sratoolkit - Operations on Sequence Read Archive SRA database - (doc)
We’ll run clustalomega
from outside
We’ll encounter 2 errors:
FATAL: Cowardly refusing to overwrite already existing file
unexpected argument "/bin/sh"
This command will fail:
docker run -it --rm pegi3s/clustalomega /bin/sh
ENTRYPOINT
A mandatory command when a container starts.
Reminder
Terminal
in /Applications/Utilities
bash reminder:
$HOME
is a variable representing your home directory, e.g. /Users/yourname
To be more easily distinguish between “where we are looking” the following colored backgrounds are useful:
Green:Commands from local computer terminal
Commands and output when WITHIN Docker container
Informational - DO NOT RUN! - commands or output examples.
generic output
Slides presentation made with RStudio, ioslides template
Docker logo from www.kissclipart.com
Illustration images from pixabay.com, pexels.com/