docker: Says connection refused when attempting to connect to a published port
问题 I'm a newbie at docker. I'm creating a Hello, World example. All I'm trying to do is bring up Apache in a docker and then view the default website from the host machine. Dockerfile FROM centos:latest RUN yum install epel-release -y RUN yum install wget -y RUN yum install httpd -y EXPOSE 80 ENTRYPOINT ["/usr/sbin/httpd", "-D", "FOREGROUND"] And then I build it: > docker build . And then I tag it: docker tag 17283f566320 my:apache And then I run it: > docker run -p 80:9191 my:apache AH00558: