From 60b182cbe0092bcc84b186022c0b1c7fc88e76bf Mon Sep 17 00:00:00 2001 From: Gianpaolo Macario Date: Mon, 31 Mar 2014 15:33:33 +0200 Subject: [PATCH] Fix "docker --name" command line option. Option "-name" to docker is obsolete. Signed-off-by: Gianpaolo Macario --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index d111e94..faa0efa 100755 --- a/run.sh +++ b/run.sh @@ -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 $?