title: Is the localhost of my instance what I see accessing it's public IP address?
body: <p>Sorry for the newbie question.<br>
  I've been playing around with an AWS EC2 to start understand how it works and a doubt has popped in my head.<br>
  I've got an instance running Debian Linux, I installed apache on it and when I access the public IP address I see the content I would usually see when accessing the <code>localhost</code> of the machine, so the doubt here is:<br><br>
  Will the localhost of the instance always be the content seen when accessing the public IP address? Say, I uninstall apache and instead get a docker container pointing to localhost, will I access the docker container when accessing the public IP Address?</p>