mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2024-12-25 00:42:23 +00:00
Send user id and group id in Docker bash
This commit is contained in:
parent
1145f75a96
commit
4e1bcd1808
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user