curl from docker ubuntu image

I have created docker image which is based on the ubuntu image, and contains java and tomcat.

FROM dockerfile/ubuntu

#java, tomcat

EXPOSE 80

Then:

  • Cannot update openssl to 1.0.2 on ubuntu docker image
  • create file in shared folder docker container
  • Where to store data in a Kubernetes cluster
  • Docker: Mount directory from one container to another
  • spring-boot cannot start in docker
  • Docker volume binding: Base image vs derivative image
  • docker run -i -t -d -p 80:80 <image>
    

    Without running tomcat, just running image and attaching to it – I try to make request to any site. For example:

    curl google.com
    

    Results connection refused:

    curl: (7) Failed to connect to google.com port 80: Connection refused
    

    What could cause this problem?

    Image is running on Amazon Linux, if it matters.

  • Collect only from STDERR when using Docker syslog logging driver
  • difference between localhost and postgres for host in docker
  • What is the available information about the files and folder inside the docker container?
  • Docker:issue faced while running two web apps inside docker
  • How to register EC2 Instance to ECS cluster?
  • Docker hangs when starting jdubois/jhipster container in OS X
  • One Solution collect form web for “curl from docker ubuntu image”

    Deployed the same image on aws ubuntu 14.04 and everything works.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.