2017-02-08 3 views
2

instructions given by Microsoft을 따라 ASP.Net 응용 프로그램 용 Windows 도커 이미지를 만들었지 만 어떤 이유 때문에 mkdir 단계를 지나갈 수 없습니다. 여기 Windows 도커 이미지 빌드가 디렉토리 생성시 멈춤

는 dockerfile입니다 :

FROM microsoft/aspnet 

RUN mkdir C:\storefront 

RUN powershell -NoProfile -Command \ 
    Import-module IISAdministration; \ 
    New-IISSite -Name "Storefront" -PhysicalPath C:\storefront -BindingInformation "*:80:" 

EXPOSE 80 

ADD storefront/ /storefront 

그리고 여기에 내가 갖는 출력입니다 :

docker build -t storefront . 
Sending build context to Docker daemon 137.8 MB 
Step 1/5 : FROM microsoft/aspnet 
---> e761eca2f8df 
Step 2/5 : RUN mkdir C:\storefront 
---> Running in a939dd7163b1 

그것은 단지에서 mkdir 여기에 달려 있습니다.

나는 이미 md을 사용하고, 백 슬래시를 슬래시로 변경하고, 드라이브 문자 대신에 상대 경로를 사용하여 모두 동일한 결과가 발생했습니다.

편집 :

여기 빌드의 로그 출력의 : 최신 Windows 업데이트 및 도커의 새 버전을 설치

[12:22:10.718][ApiProxy  ][Info ] proxy >> GET /_ping 
[12:22:10.718][ApiProxy  ][Info ] Dial name pipe \\.\pipe\docker_engine_windows 
[12:22:10.718][ApiProxy  ][Info ] Successfully dialed name pipe \\.\pipe\docker_engine_windows 
[12:22:10.718][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:10.718369300-05:00" level=debug msg="Calling GET /_ping" 
[12:22:10.718][ApiProxy  ][Info ] proxy << GET /_ping 
[12:22:11.106][ApiProxy  ][Info ] proxy >> POST /v1.25/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=storefront&ulimits=null 
[12:22:11.106][ApiProxy  ][Info ] Dial name pipe \\.\pipe\docker_engine_windows 
[12:22:11.106][ApiProxy  ][Info ] Successfully dialed name pipe \\.\pipe\docker_engine_windows 
[12:22:11.106][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:11.106869500-05:00" level=debug msg="Calling POST /v1.25/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0& networkmode=default&rm=1&shmsize=0&t=storefront&ulimits=null" 
[12:22:34.138][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.138382000-05:00" level=debug msg="[BUILDER] Cache miss: [cmd /S /C mkdir C:\\storefront]" 
[12:22:34.138][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.138382000-05:00" level=debug msg="[BUILDER] Command to be executed: [cmd /S /C mkdir C:\\storefront]" 
[12:22:34.140][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.140380500-05:00" level=debug msg="hcsshim::GetLayerMountPath Flavour 1 ID 8aa6a1776a6803a692f68e8ac6da9c5edcb38cfcdf2edd75c5706442323e7f5b" 
[12:22:34.140][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.140380500-05:00" level=debug msg="Calling proc (1)" 
[12:22:34.140][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.140380500-05:00" level=debug msg="Calling proc (2)" 
[12:22:34.140][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.140380500-05:00" level=debug msg="hcsshim::GetLayerMountPath succeeded flavour=1 id=8aa6a1776a6803a692f68e8ac6da9c5edcb38cfcdf2edd75c5706442323e7f5b  path=C:\\ProgramData\\Docker\\windowsfilter\\8aa6a1776a6803a692f68e8ac6da9c5edcb38cfcdf2edd75c5706442323e7f5b" 
[12:22:34.140][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.140380500-05:00" level=debug msg="hcsshim::CreateSandboxLayer layerId 6c84bcad548f6d4b74239e882e156d7a9dffa2b38842393b237b8c4470364f2c parentId  C:\\ProgramData\\Docker\\windowsfilter\\8aa6a1776a6803a692f68e8ac6da9c5edcb38cfcdf2edd75c5706442323e7f5b" 
[12:22:34.140][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.140380500-05:00" level=debug msg="hcsshim::NameToGuid Name 8aa6a1776a6803a692f68e8ac6da9c5edcb38cfcdf2edd75c5706442323e7f5b" 
[12:22:34.140][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.140380500-05:00" level=debug msg="hcsshim::NameToGuid Name 4bbfe8c329c52aca77b41bf0c3c7673ca55232f3520a74dacd3befa4ffa7a161" 
[12:22:34.140][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.140380500-05:00" level=debug msg="hcsshim::NameToGuid Name 6f7c5ba7066e3999eadcb8c7ce0ce997cf65a748f15755557b2bc3dd79d2e8cc" 
[12:22:34.140][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.140380500-05:00" level=debug msg="hcsshim::NameToGuid Name 4d9fc7ac017392ffdd91d3b2efe1bce1cadcab146692490e8c9300747be6ce40" 
[12:22:34.141][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.140380500-05:00" level=debug msg="hcsshim::NameToGuid Name 3fc2c39416c9725cedc3e74e11d53a63338a00ec33c968657b2724cdd0da9b4a" 
[12:22:34.141][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.141380400-05:00" level=debug msg="hcsshim::NameToGuid Name 70d596762a12ad5312e4594bd5d1670ee886d76d356a464a22b9fa648ab42bf9" 
[12:22:34.147][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.147380700-05:00" level=debug msg="hcsshim::CreateSandboxLayer - succeeded layerId=6c84bcad548f6d4b74239e882e156d7a9dffa2b38842393b237b8c4470364f2c  parentId=C:\\ProgramData\\Docker\\windowsfilter\\8aa6a1776a6803a692f68e8ac6da9c5edcb38cfcdf2edd75c5706442323e7f5b" 
[12:22:34.211][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.211976300-05:00" level=debug msg="Assigning addresses for endpoint condescending_fermi's interface on network nat" 
[12:22:34.211][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.211976300-05:00" level=debug msg="RequestAddress(172.25.112.0/20, <nil>, map[])" 
[12:22:34.211][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.211976300-05:00" level=debug msg="attach: stdout: begin" 
[12:22:34.211][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:34.211976300-05:00" level=debug msg="attach: stderr: begin" 
[12:22:49.531][ApiProxy  ][Info ] Cancel connection... 
[12:22:49.531][WindowsDockerDaemon][Info ] time="2017-02-08T12:22:49.531681200-05:00" level=debug msg="Build cancelled, killing and removing container: 6c84bcad548f6d4b74239e882e156d7a9dffa2b38842393b237b8c4470364f2c" 
+0

나를 위해 재생산 할 수 없습니다. 워크 스테이션 설정과 관련이 있다고 가정합니다. 여기에서 잘 지어집니다. –

+0

네, 허락이 있는지 궁금합니다. 누군가가 문제를 진단하는 데 도움이되기를 바랍니다. –

답변

0

이 문제를 해결했습니다.

관련 문제