docker run --name nginx --rm -d -p 8080:80 albert0i/nginx:1.20.2-servercore-ltsc2019
docker run --name nginx --rm -d -p 8080:80 -v c:\nginx\conf:c:\nginx\conf albert0i/nginx:1.20.2-servercore-ltsc2019
FROM mcr.microsoft.com/windows/servercore:ltsc2019
ENV NGINX_VER=1.20.2
USER ContainerAdministrator
RUN setx /M PATH "%PATH%;C:\nginx" &&\
curl -OL "http://nginx.org/download/nginx-1.20.2.zip" &&\
tar -xvf nginx-1.20.2.zip &&\
ren nginx-1.20.2 nginx &&\
del nginx-1.20.2.zip &&\
dir
USER ContainerUser
# In case you want to customized the image.
#COPY conf/nginx.conf /nginx/conf/nginx.conf
#
WORKDIR /nginx
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
EOF (2022/04/28)
Content type
Image
Digest
sha256:272a3cd32…
Size
2.5 GB
Last updated
over 3 years ago
docker pull albert0i/nginx:1.24.0-servercore-20H2