mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2025-02-05 23:03:03 +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 [ -r Dockerfile ]; then
|
||||||
if [ -w /var/run/docker.sock ]; then
|
if [ -w /var/run/docker.sock ]; then
|
||||||
docker build -t nk20 .
|
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
|
else
|
||||||
echo "Merci de rejoindre le groupe docker (ou lancez ce script en sudo) afin de pouvoir vous connecter au socket Docker."
|
echo "Merci de rejoindre le groupe docker (ou lancez ce script en sudo) afin de pouvoir vous connecter au socket Docker."
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user