Trying to run docker container in aws. Having these errors

ERROR 1 on one task:

Already up-to-date.

I, [2017-06-27T18:26:47.304367 #13] INFO -- : Loading --stdin
/pups/lib/pups/config.rb:23:in `initialize': undefined method `[]' for nil:NilClass (NoMethodError)
from /pups/lib/pups/cli.rb:27:in `new'
from /pups/lib/pups/cli.rb:27:in `run'
from /pups/bin/pups:8:in `<main>'

ERROR 2 on other task

2017/06/27 19:05:01 [emerg] 1#1: host not found in upstream "discourse" in /etc/nginx/nginx.conf:35
nginx: [emerg] host not found in upstream "discourse" in /etc/nginx/nginx.conf:35

Any idea why I m getting this errors?

Did you follow the INSTALL-cloud instructions?

Yes, I did. Discourse is running properly in the browser when I m using the IP but when I m trying to run it in the environment by AWS it gives me this errors.

You need to assign a domain name. Using a raw IP number is not supported.

I did assign a domain name but its not working with that

Then you need to resolve that problem first.

When I enter the domain name that is in app.yml it gives me this error “This site can’t be reached”. What should I do?

You need to go to your registrar and create an A record that points from your domain name to the IP of your site.

1 Like