Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update run.sh - added quotes #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update run.sh - added quotes
added quotes to the paths in the docker run command
solved the error "docker: invalid reference format: repository name must be lowercase." for me
based on this answer https://stackoverflow.com/questions/48522615/docker-error-invalid-reference-format-repository-name-must-be-lowercase
w4ndrille authored Nov 7, 2023
commit 2cfd86bca2960e2769db743002781bab88d27391
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
@@ -16,14 +16,14 @@ if [[ "$OSTYPE" == "msys" ]]; then
WIN_PWD=$(echo $WIN_PWD | sed -r 's/[/]+/\\/g')
WIN_PWD=$(echo $WIN_PWD | sed -r 's/\\([a-z])\\+/\U\1:\\/g')

docker run --name=gridstudio --rm=false -v $WIN_PWD\\grid-app:/home/source -v $WIN_PWD\\grid-app\\proxy\\userdata:/home/userdata -p 8080:8080 -p 4430:4430 ricklamers/gridstudio:release
docker run --name=gridstudio --rm=false -v "$WIN_PWD\\grid-app:/home/source" -v "$WIN_PWD\\grid-app\\proxy\\userdata:/home/userdata" -p 8080:8080 -p 4430:4430 "ricklamers/gridstudio:release"
else
echo "gridstudio container detected - starting container - want to do a full restart? Run destroy.sh first."
docker start gridstudio
fi
else
if [ ! "$(docker ps -a | grep gridstudio)" ]; then
docker run --name=gridstudio --rm=false -v $PWD/grid-app:/home/source -v $PWD/grid-app/proxy/userdata:/home/userdata -p 8080:8080 -p 4430:4430 ricklamers/gridstudio:release
docker run --name=gridstudio --rm=false -v "$PWD/grid-app:/home/source" -v "$PWD/grid-app/proxy/userdata:/home/userdata" -p 8080:8080 -p 4430:4430 "ricklamers/gridstudio:release"
else
echo "gridstudio container detected - starting container - want to do a full restart? Run destroy.sh first."
docker start gridstudio