Using the Container¶
Invoking a shell inside the container¶
To invoke a shell session inside the container:
# Docker command docker run -it kleinstein/immcantation:3.0.0 bash # Singularity command singularity shell immcantation-3.0.0.sif
Executing a specific command¶
After invoking an interactive session inside the container, commands can be executed in the container shell as they would be executed in the host shell.
Alternatively, it is possible to execute a specific command directly inside the
container, without starting an interactive session. The next example demonstrates
how to execute
versions report having mounted
# Docker command docker run -v $HOME/project:/data:z kleinstein/immcantation:3.0.0 versions report # Singularity command singularity exec -B $HOME/project:/data immcantation-3.0.0.sif versions report
In this case, we are executing the
versions report command which will inspect
the installed software versions and print them to standard output.
There is an analagous
builds report command to display the build date and
changesets used during the image build. This is particularly relevant if you
are using the
kleinstein/immcantation:devel development builds.