diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-01-06 08:52:38 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-01-06 08:52:38 -0600 |
| commit | e08916694a1d34dbcbe0148742fdd73ae0911593 (patch) | |
| tree | ab447a75d4a1796d1e0c9ece658d5b46634db520 /bin/run | |
| parent | 5d519375d80797ee8900288479238fddd4354379 (diff) | |
| download | slskd-e08916694a1d34dbcbe0148742fdd73ae0911593.tar.gz | |
run image from arg
Diffstat (limited to 'bin/run')
| -rwxr-xr-x | bin/run | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |
