aboutsummaryrefslogtreecommitdiff
path: root/enter-container.sh
blob: ac0c78ddc420b176be109d22f09e435e453aef4a (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash

if [ "$#" == 0 ]; then
    docker run -it -v$(pwd):/home/Solvitaire --rm \
    thecharlesblake/solvitaire:1.0
else
    docker run -it -v$(pwd):/home/Solvitaire --rm \
    thecharlesblake/solvitaire:1.0 bash -c "$*"
fi