Commit 8ac622cb authored by Eoin Clerkin's avatar Eoin Clerkin
Browse files

Update cbmdock/cbmdockInit.sh

parent 8513b87c
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment