Use PX Proxy in a Docker Container #176
Replies: 3 comments 7 replies
-
Hello Simon, what exactly is the error you are seeing? Does Px not run at all, fail on connections, or something else? It will help to run with logging to see what exactly is happening. |
Beta Was this translation helpful? Give feedback.
-
SummaryPX works great in a docker container 🥳I finally made it working, wanted to share the result with everyone, so you can get the docker image here in case anyone is interested in this: https://hub.docker.com/r/nobody1997/px-proxy How to create the imageThere were some components involved:
Bringing that all togetherDockerfile:
run.py:
px.ini
Then start it all up with docker compose: See docs here: https://hub.docker.com/r/nobody1997/px-proxy Thank you again @genotrance for helping me out here. |
Beta Was this translation helpful? Give feedback.
-
Px now ships official Docker images. Hope this makes life easier for some users. |
Beta Was this translation helpful? Give feedback.
-
Installing PX Proxy in a Docker Container | Issues installing it
Hello all,
maybe someone can support me here, I am trying to set the new PX Proxy for linux up in a Docker Container.
Therefore I've created a Dockerfile to install all the necessary dependencies as well as PX itself:
Since I need to hand in the keystore settings, I did that with a simple python script, to run everything at the startup of the container (see last CMD execute).
The python script looks like this (of course myuser and mypass are placeholders for my real password ;)):
Also I hand in a PX.ini to configure the whole PX proxy:
Bringing all this now in the build together, these files are all called on container startup to run it in the same subshell (also shown in Dockerfile, but want to highlight it again):
CMD dbus-run-session -- sh && echo 'somecredstorepass' | gnome-keyring-daemon --unlock && python3 /home/run.py && px --config=/etc/px.ini
I use the password
somecredstorepass
and did not change it. I haven't seen that I need to pass this value somehow to PX, do I?After now building this image and starting up as privileged container due to keyring
Run:
docker run --privileged -p 3128:3128 px_test:2.0
I still do not manage to get PX running successfully.
Does anyone have an Idea what am I doing wrong?
Already had some troubles with the headless install of keyring, but it seems like to work.
I appreciate any Feedback!
Thanks and cheers!
Simon
Beta Was this translation helpful? Give feedback.
All reactions