From 2f6e0776234a1fabc02b704ca1571fe7162c799e Mon Sep 17 00:00:00 2001
From: alisandra <alisandra.denton@hhu.de>
Date: Tue, 23 Aug 2022 17:43:29 +0200
Subject: [PATCH] usage for new UID matching docker

---
 workflows/userdocker/instructions.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 workflows/userdocker/instructions.md

diff --git a/workflows/userdocker/instructions.md b/workflows/userdocker/instructions.md
new file mode 100644
index 0000000..00c59cc
--- /dev/null
+++ b/workflows/userdocker/instructions.md
@@ -0,0 +1,18 @@
+# docker setup
+rebuild the image with one final detail so as to 
+match the UID of the host and be able to share files
+w/o continuous premission trouble
+
+## build docker image
+
+`sudo docker build --build-arg USERID=$(id -u) -t rnaseqme --rm .`
+
+## start docker container
+
+Do this from the parent directory of the 'rnaseq-workshop' repository, so that the mounted folder contains the repository
+
+`sudo docker run -it --name rnalive --rm --mount type=bind,source="$(pwd)"/rnaseq-workshop,target=/home/zim-gast/rnaseq-workshop rnaseqme:latest`
+
+Or for course participants 
+`docker run -it --name rnalive --mount type=bind,source="$(pwd)"/rnaseq-workshop,target=/home/zim-gast/rnaseq-workshop rnaseqme:latest`
+
-- 
GitLab