You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
314B

  1. #!/bin/bash
  2. if [[ ! -d $HOME/tmp ]]; then
  3. mkdir $HOME/tmp
  4. fi
  5. DOCKER_HOST=unix://$HOME/tmp/docker.sock
  6. if ! docker ps 2>&1 >/dev/null ; then
  7. /bin/rm $HOME/tmp/docker.sock
  8. ssh -nNT -L $HOME/tmp/docker.sock:/var/run/docker.sock root@nue3.eeqj.de
  9. fi
  10. echo export DOCKER_HOST=unix://$HOME/tmp/docker.sock