2023-06-24 02:37:07 UTC
1.81 GB
4fd9027eadf78e6a83ba407785c2286e336f6909f8e1a49110a41669df267a15
MONGO_DOWNLOAD_URLhttps://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.7-rc0-signed.msi
MONGO_VERSION6.0.7-rc0
[#000] sha256:0ce49598e7371c2c318cfa408f639c917d1f43843fb9e0a3316db1ba7fbb14db - 73.39% (1.33 GB)
[#001] sha256:369acdd1cf7c4d89f87cf3df6c1a935d83dad0afd57c96dcd7251a04481546a0 - 0.0% (1.26 KB)
[#002] sha256:db51c667812053bba143ad99f57f2e594390d114d2839963f03101ea3168bd4f - 0.0% (1.36 KB)
[#003] sha256:ae142debe7e2db118cc8ebc206e9d316de7308819579b8f37d1cf62ed5bdb785 - 0.0% (1.38 KB)
[#004] sha256:539713133b12908944449c16f19cccb052a0cfcaabd5abdd74b05443bcbe95a7 - 0.0% (1.34 KB)
[#005] sha256:4c968a05e99ef7cec8add712f53229a7dc58dbaf9894f03012136de3b0e15c06 - 26.61% (493 MB)
[#006] sha256:4e5f3813efc7759d013a404366e2c3ac1a6c7cfc00927972e1031c279a2f84d0 - 0.0% (1.38 KB)
[#007] sha256:039bd82f14857535ecb79b2045c60d0a0a2929daf13b0defb038cb0802744f54 - 0.0% (1.41 KB)
[#008] sha256:ce1d9afd58ae56b0975fc5bfca3a8e6889ea5dbdf38a878667b30a836a006b4e - 0.0% (1.38 KB)
Apply image 10.0.20348.1787
2023-06-24 02:25:59 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2023-06-24 02:34:53 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=6.0.7-rc0
2023-06-24 02:34:53 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://fastdl.mongodb.org/windows/mongodb-windows-x86_64-6.0.7-rc0-signed.msi
2023-06-24 02:34:54 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=4fd9027eadf78e6a83ba407785c2286e336f6909f8e1a49110a41669df267a15
2023-06-24 02:37:03 UTCpowershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile($env:MONGO_DOWNLOAD_URL, 'mongo.msi'); if ($env:MONGO_DOWNLOAD_SHA256) { Write-Host ('Verifying sha256 ({0}) ...' -f $env:MONGO_DOWNLOAD_SHA256); if ((Get-FileHash mongo.msi -Algorithm sha256).Hash -ne $env:MONGO_DOWNLOAD_SHA256) { Write-Host 'FAILED!'; exit 1; }; }; Write-Host 'Installing ...'; Start-Process msiexec -Wait -ArgumentList @( '/i', 'mongo.msi', '/quiet', '/qn', '/l*v', 'install.log', 'INSTALLLOCATION=C:\mongodb', 'ADDLOCAL=MiscellaneousTools,Router,ServerNoService' ); if (-Not (Test-Path C:\mongodb\bin\mongod.exe -PathType Leaf)) { Write-Host 'Installer failed!'; Get-Content install.log; exit 1; }; Remove-Item install.log; $env:PATH = 'C:\mongodb\bin;' + $env:PATH; [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); Write-Host 'Verifying install ...'; Write-Host ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';
2023-06-24 02:37:05 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2023-06-24 02:37:06 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017
2023-06-24 02:37:07 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) CMD ["mongod" "--bind_ip_all"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.