yuri-zubov is having trouble installing Discourse on an AWS EC2 Ubuntu 18.04 instance. The error message indicates that the host cannot resolve ‘github.com’ during the bootstrap process. sam suspects that the issue is related to the location’s inability to connect to GitHub.
yuri-zubov confirms that they can resolve the host from the host machine but not from within the Docker container. sam suggests that the issue might be with Docker’s network configuration.
yuri-zubov discovers that they cannot access the internet from the container and suspects a problem with the DNS resolver. sam advises configuring Docker flags to set the DNS resolver and restarting the service.
yuri-zubov finds that they can access the internet by IP address but not by hostname, confirming the DNS issue. sam provides documentation on setting Docker daemon options, specifically the --dns option.
yuri-zubov tries to ping with the --dns option but still encounters issues. sam believes the problem lies with the network.
itsbhanusharma suggests checking the EC2 instance’s security group settings. yuri-zubov discovers that DNS queries are not working on the host machine and uses the IP address of the networking interface to resolve the issue.
I have a problem with installation Discourse on ec2 AWS instance ubuntu 18.04.
I took ami-22741f5a from Ubuntu Amazon EC2 AMI Finder.
installed docker sudo apt-get install docker.io
docker version
Client:
Version: 17.12.1-ce
API version: 1.35
Go version: go1.10.1
Git commit: 7390fc6
Built: Wed Apr 18 01:23:11 2018
OS/Arch: linux/amd64
Server:
Engine:
Version: 17.12.1-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.10.1
Git commit: 7390fc6
Built: Wed Feb 28 17:46:05 2018
OS/Arch: linux/amd64
Experimental: false
when I tried to run ./launcher bootstrap app I got
cd /pups && git pull && /pups/bin/pups --stdin
fatal: unable to access 'https://github.com/SamSaffron/pups.git/': Could not resolve host: github.com
fd2db3f069b7e4acf63e853409143403956ad61fd0d5bff9daaed96955af1f67
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
Also I installed ubuntu 18.04 on virtualbox manually and didn’t see this problem.
Could you help me?
thank you in advance
You can configure docker flags that set the DNS resolver for the docker service and restart the service. It should be using your system DNS but who knows maybe something is a bit broken with the docker install.
I suspect though this is the entire network being done vs just DNS, are you sure you can ping places?