Docker images: supports TCP & BT connections
[RRG-proxmark3.git] / docker / run.sh
blobdf178fb6c6091cdfc2588c277ec59818136e2e4d
1 #!/bin/bash
3 if [ ! -e docker_conf.inc ]; then
4 echo "This script must be run from within one of the subfolders"
5 exit 1
6 fi
7 . docker_conf.inc
8 UART_PORT="$(../../pm3 --list|grep dev|head -n1|cut -d' ' -f2)"
9 if [ -n "$UART_PORT" ]; then
10 DEV="--device=/dev/tty0 --device=$UART_PORT"
11 else
12 DEV=""
14 docker run $DEV $DOCKER_PLATFORM --volume="$(pwd)/../..:/home/rrg/proxmark3" -w /home/rrg/proxmark3 --net=host --rm -it "$DOCKER_IMAGE"