1
0
mirror of https://github.com/stucki/docker-lineageos synced 2024-12-19 17:12:29 -05:00

Fix docker invocation

This commit is contained in:
Michael Stucki 2014-02-20 20:08:15 +01:00
parent b16b03a7b8
commit 4446c6e738

2
run.sh
View File

@ -10,6 +10,6 @@ REPOSITORY=stucki/cyanogenmod
test -d $SOURCE || mkdir $SOURCE
# Try to start an existing/stopped container with the given name $CONTAINER. Otherwise, run a new one.
docker start -i $CONTAINER 2>/dev/null || docker run -v $SOURCE:/home/cmbuild/android -i -t -name $CONTAINER $REPOSITORY "screen -s /bin/bash"
docker start -i $CONTAINER 2>/dev/null || docker run -v $SOURCE:/home/cmbuild/android -i -t -name $CONTAINER $REPOSITORY sh -c "screen -s /bin/bash"
exit $?