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

Error during build for sqlexpress #6

Open secangkirkopipanas opened 8 years ago

secangkirkopipanas commented 8 years ago

Hi,

I'm facing issue when I'm building the Dockerfile under sqlexpress folder. Please refer to the following details:

OS:

Windows 10 with Docker Toolbox 1.11.2

Command to build:

docker build -t sqlexpress .

Error:

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 f017abc23266 Container command '/bin/sh' not found or does not exist.

Do you have some clues to sort it out this issue? Thank you.

djoulz22 commented 8 years ago

Hi secangkirkopipanas,

I have same issue and I solve it by replacing :

FROM docker.io/microsoft/dotnet35:windowsservercore

by

FROM microsoft/dotnet35:latest

And it work very fine!

But you must start it from Windows 2016 Server Preview!

DjoulZ22

suvadan commented 8 years ago

I am also facing same issue on windwos server 2016 TP5. I have changed docker file as per suggested by DjoulZ22. Still I am getting same issue. More infor still 15th July 2016 I was able to build sqlexpress image sucessfully and created container also. on 18th July I tried on another machine i am not able build sql image. Also i removed from my old server and tried again there also i am facing same issue.

thanks Suvadan

afinzel commented 7 years ago

try https://github.com/brogersyh/Dockerfiles-for-windows/pull/7