bucrogers / Dockerfiles-for-windows

Dockerfiles for SQL Server, ASP.NET 4.6 / IIS App, Docker Swarm, PostgreSQL, Python REST service et al.
MIT License
137 stars 56 forks source link

oci runtime error: exec: "/bin/sh": stat /bin/sh: no such file or directory #5

Closed beholderrk closed 8 years ago

beholderrk commented 8 years ago

I got this error when run cd sqlexpress; Get-Content .\dockerfile | docker build -t

Full log

PS D:\projects\Dockerfiles-for-windows\sqlexpress> Get-Content .\dockerfile | docker build -t sqlexpress -
Sending build context to Docker daemon  5.12 kB
Step 1 : FROM docker.io/microsoft/dotnet35:windowsservercore
 ---> d9aa93e5e8f8
Step 2 : MAINTAINER Buc Rogers
 ---> Using cache
 ---> 11855ef37d52
Step 3 : ENV sqlinstance SQL
 ---> Using cache
 ---> 84d203a3c073
Step 4 : ENV sqlsapassword thepassword2#
 ---> Using cache
 ---> 73497686ec69
Step 5 : ENV sql c:\\sql
 ---> Using cache
 ---> d35b7f55f37b
Step 6 : ENV sqldata c:\\sql\\data
 ---> Using cache
 ---> b4254af15df4
Step 7 : ENV sqlbackup c:\\sql\\backup
 ---> Using cache
 ---> f3cd6d90753a
Step 8 : COPY . /install
 ---> Using cache
 ---> 52d6db2f4cd0
Step 9 : WORKDIR /install
 ---> Using cache
 ---> 86559bd80011
Step 10 : RUN powershell wget http://download.microsoft.com/download/E/A/E/EAE6F7FC-767A-4038-A954-49B8B05D04EB/Express%2064BIT/SQLEXPR_x64_ENU.exe       -OutFile sqlexpr_x64_enu.exe   && /install/sqlexpr_x64_enu.exe /q /x:/install/setup   && /install/setup/setup.exe /q /ACTION=Install /INSTANCENAME=%sqlinstance% /FEATURES=SQLEngine /UPDATEENABLED=1       /SECURITYMODE=SQL /SAPWD=%sqlsapassword% /SQLSVCACCOUNT="NT AUTHORITY\System"  /SQLSYSADMINACCOUNTS="BUILTIN\ADMINISTRATORS"       /INSTALLSQLDATADIR=%sqldata% /SQLUSERDBLOGDIR=%sqldata% /SQLBACKUPDIR=%sqlbackup%       /TCPENABLED=1 /NPENABLED=0 /IACCEPTSQLSERVERLICENSETERMS   && powershell ./Set-SqlExpressStaticTcpPort %sqlinstance%   && powershell ./Move-dirs-and-stop-service %sqlinstance% %sql% %sqldata% %sqlbackup%   && del sqlexpr_x64_enu.exe   && rmdir .\setup /s /q
 ---> Running in d6c133256622
oci runtime error: exec: "/bin/sh": stat /bin/sh: no such file or directory

docker version

PS D:\projects\Dockerfiles-for-windows\sqlexpress> docker version
Client:
 Version:      1.12.0-rc2
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   906eacd
 Built:        Fri Jun 17 20:35:33 2016
 OS/Arch:      windows/amd64
 Experimental: true

Server:
 Version:      1.12.0-rc2
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   a7119de
 Built:        Fri Jun 17 22:09:20 2016
 OS/Arch:      linux/amd64
 Experimental: true
StefanScherer commented 8 years ago

These Dockerfiles are used to build Windows containers images. You need a Docker engine with OS/Arch: windows/amd64, eg. a Windows Server 2016 TP5. It seems you have "Docker for Windows" installed which gives you a good experience to run Linux containers on a Windows machine.

/cc @friism

beholderrk commented 8 years ago

@StefanScherer thanks