Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nk20-scripts
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDE
nk20-scripts
Commits
4e1bcd18
Commit
4e1bcd18
authored
4 years ago
by
ynerant
Browse files
Options
Downloads
Patches
Plain Diff
Send user id and group id in Docker bash
parent
1145f75a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shell/docker_bash
+1
-1
1 addition, 1 deletion
shell/docker_bash
with
1 addition
and
1 deletion
shell/docker_bash
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment