Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 12 lines (9 sloc) 289 Bytes
#!/bin/bash
if [ ! -d "$1" ]; then
echo "Directory parameter omitted! Mounting current working directory as volume..."
directory="`pwd`"
else
echo "Mounting directory $1 as volume..."
directory="$1"
fi
docker run -d --name="ipython" -v "${directory}:/data" --net=host ipython:latest