Replies: 11 comments
-
Hey you just have to set environment variables to container :
|
Beta Was this translation helpful? Give feedback.
-
Yeah, thanks very much and this is what I know that I can achieve, but passwords may expire after a certain time. Still tend to request for such a setting in Web UI so that it can be masked and updated. What do you think? |
Beta Was this translation helpful? Give feedback.
-
I'm thinking that this is part of your Docker setup and should not be integrated in Portainer. You should either manage to do it using the @ncresswell what's your view on this? |
Beta Was this translation helpful? Give feedback.
-
Authenticating proxy servers are quite common in corp environments, so my pref is that we add this support into the UI. |
Beta Was this translation helpful? Give feedback.
-
I'm also trying to run portainer behind a proxy, but as soon as I add the env http_proxy, the portainer container doesn't start anymore. It looks like it's trying to join the docker endpoint thru the proxy. Which doesn't make sense since it's a socket file.
That's all I have. I try docker run and docker service, same results. If I remove the -e (or --env-file) it's starting fine, I can use the interface until I hit something that tryes to grab data from the outside world. So how can I pass proxy address to the portainer service ? Is it sure to be working ? How can I have more debug information ? best regards, |
Beta Was this translation helpful? Give feedback.
-
@Madko are these the logs of the Docker daemon? Can you paste the logs of the Portainer container? |
Beta Was this translation helpful? Give feedback.
-
How can I get them ? Meanwhile, I've found a workaround:
|
Beta Was this translation helpful? Give feedback.
-
You can use |
Beta Was this translation helpful? Give feedback.
-
Here is the command I use to start portainer:
If I try to
after a few seconds, the container is removed and recreated by docker service. So is this correct to use --env to pass my proxy settings to the docker service ? |
Beta Was this translation helpful? Give feedback.
-
@Madko no, you need to pass the
Basically, everything before the image name is related to the Docker command while everything located after the image name is related to the binary inside the image (here, the |
Beta Was this translation helpful? Give feedback.
-
@deviantony thanks this was as stupid as that. Now everything is working fine. |
Beta Was this translation helpful? Give feedback.
-
Description
Unable to download external templates when portainer is behind a forward proxy.
Steps to reproduce the issue:
Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?
Technical details:
docker run -p 9000:9000 portainer/portainer
):Beta Was this translation helpful? Give feedback.
All reactions