Review comments

This commit is contained in:
Alfonso Acosta
2016-07-04 17:21:12 +00:00
parent 5d23432a6c
commit 59ec3b863a
2 changed files with 2 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ Interact with your containers directly: pause, restart and stop containers. Laun
```
sudo wget -O /usr/local/bin/scope https://git.io/scope
sudo chmod a+x /usr/local/bin/scope
sudo scope launch
scope launch
```
This script will download and run a recent Scope image from the Docker Hub.

4
scope
View File

@@ -46,11 +46,10 @@ check_docker_access() {
DOCKER_SOCK_FILE="$WITHOUT_PREFIX"
fi
fi
if [ \( -n "$DOCKER_SOCK_FILE" \) -a \( ! -w "$DOCKER_SOCK_FILE" \) ]; then
echo "ERROR: cannot write to docker socket: $DOCKER_SOCK_FILE" >&2
echo "change socket permissions or try using sudo"
echo "change socket permissions or try using sudo" >&2
exit 1
fi
}
@@ -141,7 +140,6 @@ launch_app_command() {
}
check_docker_access
check_docker_version
case "$COMMAND" in