Commit 4cae8c25 authored by Sergey Gorbunov's avatar Sergey Gorbunov
Browse files

fix check for Darwin, remove unnecessary docker flags

parent 7a58d852
......@@ -24,6 +24,30 @@ source ~/.baschrc
+++ How to SSH to the container
* the container IP address one gets by calling on the host maschine:
docker inspect -f "{{ .NetworkSettings.IPAddress }}" CBM-${USER}
( the output is, for example, )
* in order to use ssh one should set the cbmdock user password inside the container:
sudo passwd
* on the host:
ssh -Y cbmdock@
++++ **Software installation inside the container**
......@@ -122,3 +146,4 @@ cd build
cmake ../cbmroot
make -j
source /home/cbmdock/build/
......@@ -10,8 +10,7 @@ touch ~/.Xauthority
export ContainerName=CBM-${USER}
docker run -td --privileged --security-opt seccomp=unconfined \
--net=host --device=/dev/kfd --device=/dev/dri --cap-add=SYS_PTRACE \
docker run -td --net=host \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro -v ${HOME}:/tmp/hostHome:ro -e XAUTHORITY=/tmp/hostHome/.Xauthority \
-e HOME=/home/cbmdock \
-v ~/cbmdock:/home/cbmdock \
......@@ -39,11 +38,12 @@ then
echo cbmdock alias already exists
echo create cbmdock alias
if [[ `uname -s` -eq Darwin ]]
if [[ `uname -s` == Darwin ]]
echo MacOSX detected
echo "alias cbmdock='docker start "${ContainerName}"; docker exec -ti -e DISPLAY=host.docker.internal:0 "${ContainerName}" bash'" >> ~/.bashrc
echo Linux detected
echo "alias cbmdock='docker start "${ContainerName}"; docker exec -ti -e DISPLAY=\$DISPLAY "${ContainerName}" bash'" >> ~/.bashrc
\ No newline at end of file
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