aboutsummaryrefslogtreecommitdiffstats
path: root/bin/run
diff options
context:
space:
mode:
Diffstat (limited to 'bin/run')
-rwxr-xr-xbin/run7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/run b/bin/run
index 5a613e65..dced97a1 100755
--- a/bin/run
+++ b/bin/run
@@ -1,3 +1,8 @@
+if [ -z "$1" ]; then
+ echo "💥 error: no image specified; provide a valid image and tag (e.g. slskd/slskd:latest)"
+ exit 1
+fi
+
docker run -i \
-p 5000:5000 \
-p $SLSK_LISTEN_PORT:$SLSK_LISTEN_PORT \
@@ -12,4 +17,4 @@ docker run -i \
-e "SLSK_ENABLE_SECURITY=$SLSK_ENABLE_SECURITY" \
-e "SLSK_CONNECT_TIMEOUT=5000" \
-e "SLSK_INACTIVITY_TIMEOUT=15000" \
- slskd/slskd:latest \ No newline at end of file
+ $1 \ No newline at end of file