mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2025-06-24 17:00:28 +02:00
Send user id and group id in Docker bash
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
if [ -r Dockerfile ]; then
|
||||
if [ -w /var/run/docker.sock ]; then
|
||||
docker build -t nk20 .
|
||||
docker run -it --rm -v "$(pwd):/var/www/note_kfet/" -p 80:8080 nk20 bash
|
||||
docker run -it -u $(id -u):$(id -g) --rm -v "$(pwd):/var/www/note_kfet/" -p 80:8080 nk20 bash
|
||||
else
|
||||
echo "Merci de rejoindre le groupe docker (ou lancez ce script en sudo) afin de pouvoir vous connecter au socket Docker."
|
||||
fi
|
||||
|
Reference in New Issue
Block a user