panhandler persistent volume

Reply
Highlighted
L2 Linker

panhandler persistent volume

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. 


Accepted Solutions
Highlighted
L2 Linker

Re: panhandler persistent volume

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'.

View solution in original post


All Replies
Highlighted
L2 Linker

Re: panhandler persistent volume

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'.

View solution in original post

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!