2017-07-26 42 views
6

Bắt lỗi khi chạy một container Docker tạo ra bởi bên dưới tập tinLỖI (message:. Không thể tìm thấy yếu tố bộ sưu tập yêu cầu) Docker IIS

FROM microsoft/iis 

RUN mkdir C:\site 

RUN powershell -NoProfile -Command \ 
    Import-module IISAdministration; \ 
    New-IISSite -Name "Site" -PhysicalPath C:\site -BindingInformation "*:8080:" 

Add dist\ C:\site 

ENV COMPOSE_CONVERT_WINDOWS_PATHS = 1 

EXPOSE 80 

Sau đó:

docker run -p 4000:80 app-temp1 

ERROR (message:Cannot find requested collection element.) Applied configuration changes to section "system.applicationHost/applicationPools" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"

Trả lời

Các vấn đề liên quan