From 2002609717ca7185999749f99a392dcbf0f76cee Mon Sep 17 00:00:00 2001 From: Eduardo Moscatelli de Souza <5752216+SouzaEM@users.noreply.github.com> Date: Wed, 22 Jan 2025 09:56:13 -0300 Subject: [PATCH] [138] Fix some instructions for running Apptainer images --- apptainer/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apptainer/README.md b/apptainer/README.md index cb857dbe..67dddc94 100644 --- a/apptainer/README.md +++ b/apptainer/README.md @@ -4,7 +4,7 @@ Apptainer is a container platform designed to run complex applications on HPC cl ### Installing Apptainer -Apptainer may be installed with the following instructions (there are issues with previous versions in Ubuntu 24): +Apptainer may be installed with the following instructions (there are issues with previous versions of Apptainer in Ubuntu 24): ```` sudo apt update sudo apt install -y wget @@ -15,12 +15,12 @@ sudo apt install -y ./apptainer_1.3.6_amd64.deb ### Building Apptainer images -In spyro, the Apptainer image is based on the [Docker image](../docker/). Converting from Docker to Apptainer is more productive because Apptainer does not support image layers by design. Then, it is necessary to rerun all the instructions of the definition file when creating Apptainer images even when just one instruction is added for testing purposes. +In spyro, the Apptainer image is based on the [Docker image](../docker/). Converting from Docker to Apptainer is more productive because Apptainer does not support image layers by design. Then, it is necessary to rerun all the instructions of the definition file when creating Apptainer images even when just one instruction is added (for example, for testing purposes). ```` export IMAGE_ID=$(sudo docker images -q devtag:1.0) sudo docker save $IMAGE_ID -o devimg.tar sudo chown $USER:$USER devimg.tar -apptainer build devimg.sif docker-archive://devimg.tar +sudo apptainer build devimg.sif docker-archive://devimg.tar ```` ### Running Apptainer images @@ -32,10 +32,10 @@ apptainer overlay create --size 1024 /tmp/ext3_overlay.img To execute the image in interactive mode: ```` -apptainer shell --overlay overlay.img -e devimg.sif +apptainer shell --overlay /tmp/ext3_overlay.img -e devimg.sif ```` To execute the image in batch mode: ```` -apptainer run --overlay overlay.img -e devimg.sif