1
0
mirror of https://github.com/stucki/docker-lineageos synced 2025-01-09 17:39:47 -05:00

Fix "docker --name" command line option.

Option "-name" to docker is obsolete.

Signed-off-by: Gianpaolo Macario <gmacario@gmail.com>
This commit is contained in:
Gianpaolo Macario 2014-03-31 15:33:33 +02:00
parent 8628adf390
commit 60b182cbe0

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 sh -c "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 $?