feat: startup scripts now set hostnames

This commit is contained in:
2026-07-24 11:17:56 +02:00
parent c2c47eb9de
commit 64f3e2e437
7 changed files with 35 additions and 29 deletions
+5 -4
View File
@@ -1,7 +1,7 @@
#!/bin/sh
containername=$([[ $1 ]] && echo $1 || echo "pytorch")
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
name=$([[ $1 ]] && echo $1 || echo "pytorch")
mount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo "
=> Mounting folder to /mnt
@@ -16,6 +16,7 @@ docker run -it \
--group-add video \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
-v $containermount:/mnt \
--name $containername \
-v $mount:/mnt \
--hostname jh-dev-container-$name \
--name $name \
rocm/pytorch:latest