2017-01-31 19 views
1

私のLinuxコンテナは魅力的に動作しますが、Dockerコンテナ内のWindows Serverに変更があって私は狂っています!DockerコンテナでWindows Server Coreを実行しています

それは私のlinux Dockerfilesのと同じくらい簡単ですが、私のドッカーファイルがビルドされません。

FROM microsoft/windowsservercore 

#Install Chocolately 
RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex)" 
ENV PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin 

#Install python 
RUN choco install -fy python2 
RUN refreshenv 
ENV PYTHONIOINPUT=UTF-8 

RUN pip install -y scipy 

私は5分の開始PIPを介して、または不思議scipyのダウンロードのインストールに失敗し、その結果Chocolatelyすることができたいくつかの回前、chocolatelyのも、インストールは失敗します。

Containers: 2 
Running: 0 
Paused: 0 
Stopped: 2 
Images: 3 
Server Version: 1.13.0 
Storage Driver: windowsfilter 
Windows: 
Logging Driver: json-file 
Plugins: 
Volume: local 
Network: l2bridge l2tunnel nat null overlay transparent 
Swarm: inactive 
Default Isolation: hyperv 
Kernel Version: 10.0 14393 (14393.693.amd64fre.rs1_release.1612 
Operating System: Windows 10 Education 
OSType: windows 
Architecture: x86_64 
CPUs: 4 
Total Memory: 7.903 GiB 
Name: xxxx 
ID: deleted 
Docker Root Dir: C:\ProgramData\Docker 
Debug Mode (client): false 
Debug Mode (server): true 
File Descriptors: -1 
Goroutines: 18 
System Time: 2017-01-31T16:14:36.3753129+01:00 
EventsListeners: 0 
Registry: https://index.docker.io/v1/ 
Experimental: true 
Insecure Registries: 
127.0.0.0/8 
Live Restore Enabled: false 
:ここ
iwr : The remote name could not be resolved: 'chocolatey.org' 
At line:1 char:2 
+ (iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex) 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : InvalidOperation: (System.Net.HttpWebRequest:Htt 
    pWebRequest) [Invoke-WebRequest], WebException 
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe 
    ll.Commands.InvokeWebRequestCommand 

は、Windowsのインストールのための私のドッカー上のいくつかの仕様です

アイデア?

+1

インターネットからの持ち込みを防ぐネットワーキングの問題があるようです。これらのリソースを参照してください:https://github.com/Microsoft/Virtualization-Documentation/tree/master/windows-server-container-tools/CleanupContainerHostNetworking – friism

+0

ありがとう、ありがとう。今すぐご利用ください! –

答えて

1

私はリフレッシュして働くことができませんでしたので、私は複数のパワーシェルセッションを使用しました。

#Install Chocolately, Python and Python Package Manager, each PowerShell session will reload the PATH from previous step 
RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex" 
RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "choco install -y python3" 
関連する問題