Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sergey Gorbunov
CbmTools
Commits
8ac622cb
Commit
8ac622cb
authored
Sep 29, 2020
by
Eoin Clerkin
Browse files
Update cbmdock/cbmdockInit.sh
parent
8513b87c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
cbmdock/cbmdockInit.sh
cbmdock/cbmdockInit.sh
+3
-8
No files found.
cbmdock/cbmdockInit.sh
View file @
8ac622cb
...
...
@@ -33,15 +33,10 @@ docker exec -t --user root ${ContainerName} bash -c "\
echo 'cbmdock ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/cbmdock &&
\
chmod 0440 /etc/sudoers.d/cbmdock "
# create cbmdock alias on the host. It runs a shell in the container with an actual DISPLAY value
source
~/.bashrc
if
[[
`
alias
|
grep
cbmdock |
wc
-l
`
-eq
0
]]
if
[[
`
alias
|
grep
-q
cbmdock
`
]]
then
echo
create cbmdock
alias
echo
"alias cbmdock='docker start "
${
ContainerName
}
"; docker exec -ti -e DISPLAY=
\$
DISPLAY "
${
ContainerName
}
" bash'"
>>
~/.bashrc
else
echo
cbmdock
alias
already exists
fi
source
~/.bashrc
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment