Paste_Image.png
Paste_Image.png
[root@localhost nginx_dockerfile]# cat Dockerfile
FROM sshd:dockerfile
RUN apt-get install -y nginx && rm -rf /var/lib/apt/lists/* &&
echo "\ndaemon off;" >> /etc/nginx/nginx.conf &&
chown -R www-data:www-data /var/lib/nginx
RUN echo "Asia/Shanghai" >/etc/timezone && dpkg-reconfigure -f noninteractive tzdata
ADD run.sh /run.sh
RUN chmod 755 /*.sh
VOLUME ["/etc/nginx/sites-enabled","/etc/nginx/certs","/etc/nginx/conf.d","/var/log/nginx"]
WORKDIR /etc/nginx
CMD ["/run.sh"]
EXPOSE 80
EXPOSE 443
[root@localhost nginx_dockerfile]#
dockerfiler成功執(zhí)行的標志.png
dockerfiler執(zhí)行.png
ssh 連接.png
成功的進行端口映射.png
創(chuàng)建公鑰私鑰.png
目錄文件創(chuàng)建.png
A)5HZUTGR{J1V)I8@JA8}SS.png
authorized.png
dockerfiler.png