script:
  # Install Unzip
  - apt-get update
  - apt-get install unzip
  # Install the AWS CLI
- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
| /** | |
| * Removes {}, '', null, undefined values from objects and arrays recursively | |
| * WARNING: This should be used only on objects that are known to not have | |
| * circular refrences. User input can't have circular dependencies because | |
| * it could not be JSON.stringified if it did, therefore user input is safe. | |
| */ | |
| function scrub(obj) { | |
| for(var prop in obj) { | |
| if(_.isArray(obj[prop])) { | |
| obj[prop].forEach(function() { | 
| Private _selectedServerInstance As String | |
| Property SelectedServerInstance As String | |
| Get | |
| Return _selectedServerInstance | |
| End Get | |
| Set(value As String) | |
| _selectedServerInstance = value | |
| RaisePropertyChanged(Function() Me.SelectedServerInstance) | |
| End Set | |
| End Property | 
| <# | |
| .DESCRIPTION | |
| SelfSignedCertificate Script | |
| .NOTES | |
| Author: Freist Li | |
| Modified By: Ben Zuill-Smith | |
| Usage: | |
| 1) Copy this script to a .ps1 file. | 
| # The main thing to remember here is -KeySpec Signature | |
| New-SelfSignedCertificate -CertStoreLocation cert:\localmachine\my ` | |
| -FriendlyName "Token Signing" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3") ` | |
| -KeyUsage DigitalSignature -KeyAlgorithm RSA -KeyLength 2048 -KeySpec Signature ` | |
| -DnsName <DNS HERE> | 
| # How to grab git submodules | |
| # image: mcr.microsoft.com/dotnet/sdk:6.0 | |
| # openssh required for git submodule | |
| - apt-get update | |
| - apt-get install --yes openssh-client | |
| - git submodule update --init --recursive | 
script:
  # Install Unzip
  - apt-get update
  - apt-get install unzip
  # Install the AWS CLI
script:
  # Install mongosh
  - >
    curl -fSsL --output mongosh.tgz https://downloads.mongodb.com/compass/mongosh-1.6.1-linux-x64.tgz &&
    tar -xf mongosh.tgz -C /usr/share &&
    rm mongosh.tgz
  # Initialize test db
  - /usr/share/mongosh-1.6.1-linux-x64/bin/mongosh mongodb://root:[email protected]:27017  -f scripts/init.js
  # Run tests
I thought WSL 2 somehow also supported windows containers but Docker 4.13.1 indicates that Hyper-V is required. 4.16.x just wouldn't work and gave a .//pipe/docker_engine-windows related exception. Could be that it didn't give a proper error message when Hyper-V was missing.
On 4.13.1 I got it running.
I didn't immediately have internet. To fix this I had to add dns: [8.8.8.8] to the docker engine daemon.json settings.
After step 1, TLS failed. This old image doesn't have Tls12 turned on by default. Enable it with the following run in the container