You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case the property identified as PROPERTY_CONTAINER_PROTOCOL is not defined, then the protocol of the docker daemon is used to build the URI for checking the container.
I was able to fix this by extending my config as follows:
(The container-protocol property corresponds to PROPERTY_CONTAINER_PROTOCOL). This appears to be an undocumented feature, at least I couldn't find any reference to it in the ShinyProxy or containerproxy documentation. I found it through reviewing the code.
Note that the behaviour is different when using the internal network option:
In that case there is DEFAULT_TARGET_PROTOCOL which is "http".
I can see a few possible resolutions:
Update the documentation so it is clear that this setting may be needed when using a docker daemon with https.
Amend the code so when not using the internal network option the behaviour is the same as with the internal network option - use DEFAULT_TARGET_PROTOCOL when it is not set
Move this setting from a general docker property down into the specs configuration, so it can be set differently for different containers in the same proxy. At the moment it appears to me that it would not be possible to proxy and http and an https app at the same time.
I see two possible solutions.
The text was updated successfully, but these errors were encountered:
I discovered this using ShinyProxy 2.3.0 with containerproxy 0.8.3
I am using docker engine, secured with TLS, so part of my config looks like:
When running ShinyProxy with the example applications, after attempting to launch an application I find the following in the logs:
Until eventually it gives up with an exception. The problem is that the
01_hello
application is listening on HTTP not HTTPS.The reason that ShinyProxy/containerproxy is attempting to use https to check the container is here:
containerproxy/src/main/java/eu/openanalytics/containerproxy/backend/docker/DockerEngineBackend.java
Line 129 in e4a8dda
In case the property identified as
PROPERTY_CONTAINER_PROTOCOL
is not defined, then the protocol of the docker daemon is used to build the URI for checking the container.I was able to fix this by extending my config as follows:
(The
container-protocol
property corresponds toPROPERTY_CONTAINER_PROTOCOL
). This appears to be an undocumented feature, at least I couldn't find any reference to it in the ShinyProxy or containerproxy documentation. I found it through reviewing the code.Note that the behaviour is different when using the internal network option:
containerproxy/src/main/java/eu/openanalytics/containerproxy/backend/docker/DockerEngineBackend.java
Line 118 in e4a8dda
In that case there is
DEFAULT_TARGET_PROTOCOL
which is "http".I can see a few possible resolutions:
specs
configuration, so it can be set differently for different containers in the same proxy. At the moment it appears to me that it would not be possible to proxy and http and an https app at the same time.I see two possible solutions.
The text was updated successfully, but these errors were encountered: