12/17/2019 - (last updated: 2019-12-17)

Tutorials link

Learned previously

  • docker run with -it and --rm options
  • shared directory with -v option
  • listing and removing images:
    • docker images
    • docker rmi IMAGE_NAME
  • listing and removing containers:
    • docker container ls with optional -a or -aq
    • docker rm CONTAINER_ID to remove a container
  • Choosing an image from Docker Hub
  • pull images and use appropriate tag if necessary
  • We can run a container from within (“dive-in) or without (”remote")

Part 3: Learning objectives

  • Select 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

  • Main objective: face and resolve challenges

Task 1: choosing Docker images

Clustal Omega

We’ll run clustalomega from outside

We’ll encounter 2 errors:

  • FATAL: Cowardly refusing to overwrite already existing file

  • unexpected argument "/bin/sh"

Failed

This command will fail:

docker run -it --rm pegi3s/clustalomega /bin/sh
  • Why?
  • ENTRYPOINT

ENTRYPOINT


A mandatory command when a container starts.

Two containers for genomics

Getting Started

Reminder

  • Find Terminal in /Applications/Utilities
  • or use Spotlight (top right magnifying glass) and start typing Terminal

bash reminder:

$HOME is a variable representing your home directory, e.g. /Users/yourname

Colored backgrounds

To be more easily distinguish between “where we are looking” the following colored backgrounds are useful:

Green:
Commands from local computer terminal
Blue:
Commands and output when WITHIN Docker container
Yellow:
Informational - DO NOT RUN! - commands or output examples.
White:
generic output

Credits