- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-21-2020 10:33 AM
HI team. A bit of a silly question, but how to do you use persistent shared volume for the panhandler container?
I spent half a day trying to get it to work, used the installation script, tried manually, read docker documentation, but it did not work.
05-28-2020 09:46 AM
ideally, you want to attach a volume to `/home/cnc_user`. Here is an example that should help:
docker volume create panhandler_volume
docker run -p 8080:8080 -t -d \
-v panhandler_volume:/home/cnc_user \
-v "/var/run/docker.sock:/var/run/docker.sock" \
-e CNC_USERNAME=paloalto \
-e CNC_PASSWORD=panhandler \
--name panhandler paloaltonetworks/panhandler
The key is the create the volume first using the 'docker volume create' command, then reference that in the run command. Happy to help, you can always ping me on slack on the networktocode slack community as 'nembery'.
05-28-2020 09:46 AM
ideally, you want to attach a volume to `/home/cnc_user`. Here is an example that should help:
docker volume create panhandler_volume
docker run -p 8080:8080 -t -d \
-v panhandler_volume:/home/cnc_user \
-v "/var/run/docker.sock:/var/run/docker.sock" \
-e CNC_USERNAME=paloalto \
-e CNC_PASSWORD=panhandler \
--name panhandler paloaltonetworks/panhandler
The key is the create the volume first using the 'docker volume create' command, then reference that in the run command. Happy to help, you can always ping me on slack on the networktocode slack community as 'nembery'.
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 LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!