Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Send user id and group id in Docker bash
· 4e1bcd18
ynerant
authored
Sep 02, 2020
4e1bcd18
Hide whitespace changes
Inline
Side-by-side
shell/docker_bash
View file @
4e1bcd18
...
...
@@ -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
...
...