2018-08-17 09:58:57 UTC
3.4 GB
584bc98ce5755f419b7182c3abf1c632a4365e28577a4f498be2c291beeae7c2
MONGO_DOWNLOAD_URLhttps://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.6.6-signed.msi
MONGO_VERSION3.6.6
[#000] sha256:5847a47b8593f7c39aa5e3db09e50b76d42aa8898c0440c70cc9c69747d4c479 - 62.3% (2.12 GB)
[#001] sha256:c4047f78756c2319eb99557ec7139906cf11af6c91aefcc0e44ac49a5481d8e4 - 22.95% (799 MB)
[#002] sha256:979b51c3a12a3db81990ebd92c5d5a3325e035f84c0503e987ede3bfd73f44df - 0.0% (1.16 KB)
[#003] sha256:6bf6816aaf59c0f07a4e05da584c6f7ffd5bb1b88857d1b2a24752229d722acd - 0.0% (1.17 KB)
[#004] sha256:dff2a77315c980fc8da6840e1600fa9d1142aa145cf7121dae87f69f08d30035 - 0.0% (1.16 KB)
[#005] sha256:afd5339b2551196f141fa5346a4108a2a3d4a100fb608d372c690a9e422b967f - 0.0% (1.18 KB)
[#006] sha256:c54ed76500887df1504bcf67fcb031298a1593ad861d92a6f79fcb4dcb6e2171 - 14.75% (513 MB)
[#007] sha256:0fb197b4854efcb4bbee22afc60cf1fb20a51bcc1b1cffc28e85c6888200e896 - 0.0% (1.17 KB)
[#008] sha256:729482620dd2198dab11438727cc50e717b1fddcad67d09fd4fffb500055d6e3 - 0.0% (1.17 KB)
[#009] sha256:d6adf24a0727d94d5d8cd3e44983c2e045c998176364da5a1bfb8517e81d0a3a - 0.0% (1.17 KB)
Apply image 10.0.16299.15
2018-08-08 23:20:54 UTCInstall update 10.0.16299.611
2018-08-17 09:24:21 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) SHELL [powershell -Command $ErrorActionPreference = 'Stop';]
2018-08-17 09:39:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_VERSION=3.6.6
2018-08-17 09:39:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_URL=https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.6.6-signed.msi
2018-08-17 09:39:57 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) ENV MONGO_DOWNLOAD_SHA256=584bc98ce5755f419b7182c3abf1c632a4365e28577a4f498be2c291beeae7c2
2018-08-17 09:58:52 UTCpowershell -Command $ErrorActionPreference = 'Stop'; Write-Host ('Downloading {0} ...' -f $env:MONGO_DOWNLOAD_URL); (New-Object System.Net.WebClient).DownloadFile($env:MONGO_DOWNLOAD_URL, 'mongo.msi'); 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', 'INSTALLLOCATION=C:\mongodb', 'ADDLOCAL=all' ); $env:PATH = 'C:\mongodb\bin;' + $env:PATH; [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine); Write-Host 'Verifying install ...'; Write-Host ' mongo --version'; mongo --version; Write-Host ' mongod --version'; mongod --version; Write-Host 'Removing ...'; Remove-Item C:\mongodb\bin\*.pdb -Force; Remove-Item C:\windows\installer\*.msi -Force; Remove-Item mongo.msi -Force; Write-Host 'Complete.';
2018-08-17 09:58:54 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) VOLUME [C:\data\db C:\data\configdb]
2018-08-17 09:58:56 UTCpowershell -Command $ErrorActionPreference = 'Stop'; #(nop) EXPOSE 27017/tcp
2018-08-17 09:58:57 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.