79203570

Date: 2024-11-19 13:21:52
Score: 1.5
Natty:
Report link

Use the below dockerfile and run the command

FROM microsoft/iis:latest RUN powershell c: mkdir volume RUN powershell -NoProfile -Command Remove-Item -Recurse C:\inetpub\wwwroot* WORKDIR /inetpub/wwwroot COPY content/ . EXPOSE 80

docker run -d -h containername -v C:\Users\admin\Desktop\iis-demo\content:C:\volume -p 2001:80 dockerimage

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: sheik