As I already said here : Plugin Docker is a non-maintained docker plugin. The work done by Nicjo814 it's just great !
The plugin works like a charm ! Plugin main discussion here : Docker GUI plugin now stable
Once the plugin installed, you have some preferred images you can get in the plugin. One of them is done by me (scm-manager). It's fully compatible with openmediavault, because I've done the necessary in the dockerfile to have a subdirectory to allow nginx redirection.
With that way, you can keep openmediavault uri (and https) and redirect to the docker port/protocol. But, I need to maintain the docker file and so the docker project linked to the code source of the original project ... it can be sometimes a lot of work, and if nobody do this job on the docker images you want, if you don't know how to make your own ... there is no solution.
So, may be not for all docker images, but for most of them, you should be able to redirect a subdirectory to the root of the container ... after some research, this is the way how to do this, with this procedure, you don't have to modify the docker image, just redirect all from a subdirectory to the container (most of the time, the container answer on the root).
So, If I take the following service named my_docker_service, you have to pull image : maintenainer/my_docker_service tag : latest)
After running the container from this image (exposing port : 80 ; mapped port 80XX) in this example.
You have to add the following file /etc/nginx/openmediavault-webgui.d/my_docker_service.conf
location /my_docker_service {
rewrite ^/my_docker_service(/.*)$ $1 break;
proxy_pass http://localhost:80XX;
proxy_set_header Host localhost:80XX;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect default;
}
I just reload nginx :
Then you should be able to access to Shaarli container directly with the following url : https://your.openmediavault.org/my_docker_service/ instead of : http://your.openmediavault.org:8032/
By this way, no need to duplicate my_docker_service github repository to adapt the image then publish it on docker repository ...
So I purpose you to add in this discussion all docker images checked by this way and create a docker service catalog omv-compatible !