Docker Desktop 4.2.0 (70708)
Using Image “mcr .microsoft.com/windows/servercore:ltsc2022”
DockerFile
# escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2022
#
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
#
# Visual Studio 2015 - 2022 Redistributable Package x64
#
ADD https://aka.ms/vs/16/release/vc_redist.x64.exe .
RUN Start-Process c:\vc_redist.x64.exe -Wait -ArgumentList """/q"""; `
Remove-Item c:\vc_redist.x64.exe
#
# DOTNET Framework 4.8
#
ADD https://download.visualstudio.microsoft.com/download/pr/2d6bb6b2-226a-4baa-bdec-798822606ff1/8494001c276a4b96804cde7829c04d7f/ndp48-x86-x64-allos-enu.exe .
#RUN Start-Process c:\ndp48-x86-x64-allos-enu.exe -Wait -ArgumentList """/q""", """/norestart"""; `
# Remove-Item c:\ndp48-x86-x64-allos-enu.exe
RUN c:\ndp48-x86-x64-allos-enu.exe /q /norestart
RUN Remove-Item c:\ndp48-x86-x64-allos-enu.exe
#
# Unpack Oracle RDBMS
#
WORKDIR c:/
ENV ORACLE_HOME c:\oracle\rdbms\21.3\db_home1
COPY WINDOWS.X64_213000_db_home.zip C:/
RUN New-Item -ItemType "directory" -Path $env:ORACLE_HOME; `
Expand-Archive -Path C:\WINDOWS.X64_213000_db_home.zip -DestinationPath $env:ORACLE_HOME; `
Remove-Item WINDOWS.X64_213000_db_home.zip
#
# Install Oracle Software
#
WORKDIR $ORACLE_HOME
COPY setup.rsp $ORACLE_HOME/inventory/Scripts/
RUN .\setup.exe -silent -responseFile %ORACLE_HOME%/inventory/Scripts/setup.rsp
COPY dbca.rsp .
#
# Execution of NETCA and DBCA deferred to Start.ps1. This allows volumes and hostnames to be assigned using "Docker RUN" or "Docker-Compose"
#
WORKDIR c:/
COPY Start.ps1 .
ENTRYPOINT ["powershell","c:\\Start.ps1"]
#ENTRYPOINT ["powershell","wait-event"]
Results in
...
Removing intermediate container b87997f3b6df
---> c809ce6c9237
Step 12/18 : WORKDIR $ORACLE_HOME
---> Running in 1b33b3744ddb
Removing intermediate container 1b33b3744ddb
---> dd60de877deb
Step 13/18 : COPY setup.rsp $ORACLE_HOME/inventory/Scripts/
---> 3ccb7e8fc288
Step 14/18 : RUN .\setup.exe -silent -responseFile %ORACLE_HOME%/inventory/Scripts/setup.rsp
---> Running in 64d26e8c4732
The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; .\setup.exe -silent -responseFile %ORACLE_HOME%/inventory/Scripts/setup.rsp' returned a non-zero code: 4294967295: failed to shutdown container: container 64d26e8c4732daba7545f7f230266d789f93aeb5a963b8b44ed4b40f44ccf814 encountered an error during hcsshim::System::Shutdown: failure in a Windows system call: The connection with the virtual machine or container was closed. (0xc037010a): subsequent terminate failed container 64d26e8c4732daba7545f7f230266d789f93aeb5a963b8b44ed4b40f44ccf814 encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The connection with the virtual machine or container was closed. (0xc037010a)
I think this means the docker build crashed
C:\Development\YADAMU>docker info
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Build with BuildKit (Docker Inc., v0.6.3)
compose: Docker Compose (Docker Inc., v2.1.1)
scan: Docker Scan (Docker Inc., 0.9.0)
Server:
Containers: 5
Running: 2
Paused: 0
Stopped: 3
Images: 237
Server Version: 20.10.10
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics internal l2bridge l2tunnel nat null overlay private transparent
Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 22000 (22000.1.amd64fre.co_release.210604-1628)
Operating System: Windows 10 Pro Version 2009 (OS Build 22000.318)
OSType: windows
Architecture: x86_64
CPUs: 8
Total Memory: 31.59GiB
Name: MDRAKE-SURFACE
ID: P3YO:46BH:PUGQ:ZJCT:ZDLR:TJZE:SHH7:JIWQ:GR4W:GCFV:7BAG:LXDJ
Docker Root Dir: C:\ProgramData\Docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
C:\Development\YADAMU>
Note the build completes successfully if I use Oracle21c with the image “mcr .microsoft.com/windows/servercore:ltsc2019”
or Oracle19c with Image “mcr .microsoft.com/windows/servercore:ltsc2022”
Any ideas ?