From 2e5b17ab5e5e8f9fe7eaaffc17e80d8fa7f8b782 Mon Sep 17 00:00:00 2001 From: Kerem Kayabay Date: Wed, 7 Feb 2024 17:19:05 +0100 Subject: [PATCH] fix the second bash block --- reproduce_container_bug.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/reproduce_container_bug.md b/reproduce_container_bug.md index 2707119..46803ba 100644 --- a/reproduce_container_bug.md +++ b/reproduce_container_bug.md @@ -13,11 +13,19 @@ udocker load -i $WS_DIR/$CONTAINER_NAME.tar $CONTAINER_NAME rm /$WS_DIR/$CONTAINER_NAME.tar # you no longer need the tar archive ``` -Allocate a CPU node: +Allocate a CPU node, and then: ```bash module load bigdata/udocker/1.3.4 -export WS_DIR=$(ws_find benchmarks) +export WS_DIR=$(ws_find workspace_dir) # adjust this +export UDOCKER_DIR="$WS_DIR/.udocker/" +export UDOCKER_CONTAINERS="/run/user/$PBS_JOBID/udocker/containers" +mkdir -p $UDOCKER_CONTAINERS +mkdir -p /run/user/$PBS_JOBID/tmp +export CONTAINER_NAME=ray +export CONTAINER_TAG=latest +udocker create --name=$CONTAINER_NAME:$CONTAINER_TAG +udocker ps udocker run --volume $WS_DIR:/workspace --volume /run/user/$PBS_JOBID/tmp:/tmp $CONTAINER_NAME ```