Cannot pass env variables to docker
You need to place your environment variables before the image's name. Try this:
docker run -e FOO='foo' -p 49160:8080 -d appname
You need to place your environment variables before the image's name. Try this:
docker run -e FOO='foo' -p 49160:8080 -d appname