I\'m trying to create a shell script to run a docker container and am struggling. My script is like this:
#!/bin/bash if [ \"$1\" == \"\" ]; then echo \
docker run \ -e NODE_PATH='./src' \ -e NODE_HOST='0.0.0.0' \ -e NODE_ENV='production' \ -e DOCKER=true \ -e PORT='8080' \ -e STAGING=true \ -e SENDGRID_API_KEY='<redacted>' \ -p 8080:8080 --rm -it $1
The image name should be after the -it parameter and so re arrange your run command.