Skip to content
Snippets Groups Projects
Commit 4e1bcd18 authored by ynerant's avatar ynerant
Browse files

Send user id and group id in Docker bash

parent 1145f75a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment