Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Search for Ubuntu image: singularity search ubuntu
  2. Download latest image: singularity pull library://library/default/ubuntu
  3. Notice that the image is in fact a file downloaded to your local directory: ls -l ubuntu_latest.sif
  4. Run the image: ./ubuntu_latest.sif
  5. Notice that you are mapped to the same user as in the host machine, run whoami and id
  6. Notice that you are seeing your own $HOME directory from the container: ls -l
  7. Check what system are you currently running: cat /etc/os-release
Info

Note that while you are inside container executed by singularity your system will report as

Code Block
> cat /etc/os-release
NAME="Ubuntu"
VERSION="18.10 (Cosmic Cuttlefish)"
ID=ubuntu
ID_LIKE=debian
...
...

while Marconi node will present itself as

Code Block
> cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
...
...



uDocker

uDocker was created in H2020 project INDIGO-DataCloud. It uses Docker images natively, but provides a userspace tool to run and manage containers. Because it does not require superuser privileges, it is also a good fit as a container tool to be used in HPCs. uDocker also supports MPI calculations and provides ways to access host's GPU.

...