17 lines
331 B
Bash
17 lines
331 B
Bash
#!/bin/bash
|
|
|
|
set -x ;
|
|
|
|
NAME=$(echo $(basename "${PWD}" ).${RANDOM});
|
|
|
|
# must run this file in the projects root folder path
|
|
|
|
docker run -it --rm \
|
|
--gpus all \
|
|
-v /etc/timezone:/etc/timezone:ro \
|
|
-v /etc/localtime:/etc/localtime:ro \
|
|
-v $(pwd):/tf \
|
|
--name ${NAME} \
|
|
--net=host \
|
|
docker.bitsathy.ac.in/tensorflow-gpu bash;
|