Install Hortonworks on docker WSL2.

Install WSL 2

1. Enable the feature Windows-Subsystem-Linux

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

2. Update to WSL 2


3. Enable the feature Virtual Machine Platform

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

4. Download the linux kernel update package

https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

Step 5 - Set WSL 2 as your default version

wsl –set-default-version 2

View what reserved ports there are currently

netsh int ipv4 show excludedportrange protocol=tcp

Delete any ports that are reserved that you need

netsh int ipv4 delete excludedportrange protocol=tcp startport=50000 numberofports=50

You may need to restart the machine

Reserve ports

netsh int ipv4 add excludedportrange protocol=tcp startport=53 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8918 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=1080 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=4200 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=7777 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=7788 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8000 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8080 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8443 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8744 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8886 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=9088 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=9089 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=61080 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=61888 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=4040 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=6080 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8042 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8088 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8188 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8198 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8888 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=9995 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=11000 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=15000 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=16010 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=18081 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=19888 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=21000 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=50070 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=50075 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=50111 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8081 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8585 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=3000 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=10002 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=30800 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=2182 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=2202 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=4557 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=6627 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=6667 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=9090 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=9091 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=15550 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=1100 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=1111 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=1988 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=2100 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=2181 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=2201 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=2222 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=4242 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=5007 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=5011 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=6001 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=6003 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=6008 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=6188 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=6668 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8005 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8020 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8032 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8040 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8082 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8086 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8090 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8091 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8765 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8889 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8983 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=8993 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=9000 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=9996 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=10000 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=10001 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=10015 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=10016 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=10500 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=10502 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=12049 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=12200 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=15002 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=16000 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=16020 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=16030 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=18080 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=33553 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=39419 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=42111 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=50079 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=50095 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=60000 numberofports=1 netsh int ipv4 add excludedportrange protocol=tcp startport=60080 numberofports=1