Published install instructions for PanHandler are for MAC and Linux systems. I run Windows. Here is how I installed PanHandler on my Windows 10 system.
Install Docker for Windows from the Docker Hub -- https://docs.docker.com/docker-for-windows/install/
I’m at Docker Engine v19.3.5
Once Docker is installed and after your system has rebooted, open Docker from the systray.
My Docker settings: (Sorry, screenshots would not paste)
Kubernetes is unchanged.
Execute “Apply & Restart” lower right.
Make sure Docker is running by checking lower left of window.
Download and install Git Bash. Git Bash is an application for Microsoft Windows environments which provides an emulation layer for a Git command line experience. It is possible to turn on the Windows Subsystem for linux (WSL) but I used Git Bash.
Use Git Bash (or WSL) to run the PanHandler setup CLI per the setup instructions -- https://panhandler.readthedocs.io/en/master/running.html#quickstart
curl -s -k -L http://bit.ly/2xui5gM | bash
Output from the CLI command should include no errors and should look like this …
$ curl -s -k -L http://bit.ly/2xui5gM | bash
Welcome to Panhandler
Checking 6827534e456d (this is your container)
Checking for image updates ... (This may take some time while the image downloads)
paloaltonetworks/panhandler:latest is already up to date!
Found container id of 6827534e456d
This container is up-to-date!
Panhandler is already up to date. Ensuring it's running
You may now use Panhandler by opening a web browser and browsing to http://localhost:8080
If you receive output that states an inability to access you docker container, review your Docker stetting from the systray.
You should now be able to access PanHandler with a local system browser via the URL provided in the last line of output.
Continue with PanHandler usage instructions using https://live.paloaltonetworks.com/t5/Skillet-Tools/Install-and-Get-Started-With-Panhandler/ta-p/3079...
Windows feature Hyper-V conflicts with VMWorkstation. My VMWorkstation version is current at 15.5.1 build-15018445. Hyper-V is required to run a Docker container on Win10.
The result, turn off Hyper-V feature and reboot to run VMWorkstation; turn on Hyper-V and reboot to run PanHandler/Docker.
There is a powershell command to turn Hyper-V feature on/off but does not get around the reboot.
Disable in Powershell with this command: < bcdedit /set hypervisorlaunchtype off >
Reenable Hyper-v with command: < bcdedit /set hypervisorlaunchtype auto >
Thanks Elliot for the post. I followed your instructions, and everything is working fine. However I couldn't run the script using Git Bash.
It returned the error below. I have spent the whole day trying to find a resolution with no luck.
Any idea what could be the issue ? It is working fine on another linux machine, but the issue exists with Windows 10 only
Error response from daemon: mkdir C:\Program Files\Git\var: Access is denied
FYI - in response to previous poster who had problems. I opened a cmd prompt as Admin and created the directory c:\program files\Git\var. Then using explorer I modified security rights, granting users Modify rights. After that it worked. I did get a prompt that Docker wanted to share and I allowed that.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!
The Live Community thanks you for your participation!