dockerfile - Docker doesn't show port mapping?
PHP中文网
PHP中文网 2017-06-06 09:52:29
0
1
825

Then they are all entered according to an example on the Internet
dockerfile:
FROM ubuntu:14.04
MAINTAINER Chris Chan "chenx1242@163.com"
ENV REFRESHED_AT 2016-12-05
RUN apt-get -y update && apt-get install -y nginx
RUN mkdir -p /var/www/html/website
ADD nginx/global.conf /etc/nginx/conf.d/
ADD nginx/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80

PHP中文网
PHP中文网

认证高级PHP讲师

reply all (1)
小葫芦

If your container status is exited, there must be no port mapping. Is there something missing at the end of your dockerfile, such as:CMD service nginx start

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!