feat: improved startup scripts

This commit is contained in:
2026-07-24 11:07:07 +02:00
parent e189c6d9bf
commit c2c47eb9de
7 changed files with 11 additions and 1 deletions
+1
View File
@@ -5,6 +5,7 @@ containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo " echo "
=> Mounting folder $containermount to /mnt (in container) => Mounting folder $containermount to /mnt (in container)
=> Starting container
" "
docker run -it \ docker run -it \
+1
View File
@@ -5,6 +5,7 @@ containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo " echo "
=> Mounting folder to /mnt (in container) => Mounting folder to /mnt (in container)
=> Starting container
" "
docker run -it \ docker run -it \
+2 -1
View File
@@ -4,7 +4,8 @@ containername=$([[ $1 ]] && echo $1 || echo "php")
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/") containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo " echo "
=> Mounting folder to /mnt => Mounting folder to /mnt (in container)
=> Starting container
" "
docker run -it \ docker run -it \
+1
View File
@@ -5,6 +5,7 @@ containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo " echo "
=> Mounting folder to /mnt (in container) => Mounting folder to /mnt (in container)
=> Starting container
" "
docker run -it \ docker run -it \
+1
View File
@@ -5,6 +5,7 @@ containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo " echo "
=> Mounting folder to /mnt => Mounting folder to /mnt
=> Starting container
" "
docker run -it \ docker run -it \
+1
View File
@@ -5,6 +5,7 @@ containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo " echo "
=> Mounting folder to /mnt (in container) => Mounting folder to /mnt (in container)
=> Starting container
" "
docker run -it \ docker run -it \
+4
View File
@@ -3,6 +3,10 @@
containername=$([[ $1 ]] && echo $1 || echo "webserver") containername=$([[ $1 ]] && echo $1 || echo "webserver")
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/") containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
echo "
=> Starting container
"
docker run --rm \ docker run --rm \
-v $containermount:/var/www/html \ -v $containermount:/var/www/html \
--name $containername \ --name $containername \