nginxinc / docker-nginx-controller

Docker support for NGINX Controller Agent in Containers
Apache License 2.0
29 stars 26 forks source link

container not running #42

Closed sorinboia closed 3 years ago

sorinboia commented 3 years ago

I have built the container as guided both on Debian and Ubuntu with nap but when I run it I get the following errors

$ docker run --name mynginx3 --env ENV_CONTROLLER_INSTANCE_NAME=testinstance nginx-agent : not found.sh: 5: /entrypoint.sh: : not found.sh: 10: /entrypoint.sh: : not found.sh: 15: /entrypoint.sh: : not found.sh: 17: /entrypoint.sh: { received TERM signal stopping bd-socket-plugin stopping bd-agent stopping controller-agent ... stopping nginx ... Usage: /etc/init.d/controller-agent {start|stop|status|restart|configtest|debug} : not found.sh: 27: /entrypoint.sh: } : not found.sh: 28: /entrypoint.sh: : bad trap : not found.sh: 30: /entrypoint.sh: 'o passwd entry for user 'nginx 'o passwd entry for user 'nginx starting nginx ... : not found.sh: 38: /entrypoint.sh: : not found.sh: 39: /entrypoint.sh: : not found.sh: 41: /entrypoint.sh: : not found.sh: 42: /entrypoint.sh: : not found.sh: 44: /entrypoint.sh: : not found.sh: 46: /entrypoint.sh: : not found.sh: 48: /entrypoint.sh: : not found.sh: 51: /entrypoint.sh: : not found.sh: 54: /entrypoint.sh: /entrypoint.sh: 120: /entrypoint.sh: Syntax error: end of file unexpected (expecting "then")

sorinboia commented 3 years ago

This was my bad. Was running docker build on windows while having the entrypoint.sh on a windows format instead of linux.