• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question use docker image without port mapping

Fabian H

Basic Pleskian
I installed the latest biospheere/promcord image as docker container.
But if I disable automatic port mapping, no manual port mapping is available. As in the docs, the container does not allow ports.
But I asked the author of the application for the standard port, it should be 8080.
After starting the docker container, no errors are in the console. I curled from localhost to port 8080 but there is just a refused connection.
Because of that, I cannot setup a docker rule to this application to reverse-proxy a subdomain to the container.

Any ideas?
 
You can archive it by doing some voodoo in the shell.

List your containers with
Code:
docker ps

Now, clone the container which has no port mapping enabled (in my case the name of the container is promcord) with
Code:
docker commit promcord promcord_2

Now run the new container initially with the ports you want to expose:
Code:
docker run -p 8080:8080 -td promcord_2

You can now find and modify the newly created container in plesk.
 
Back
Top