• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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.

Resolved How to expose a Docker port to the public?

philippL

New Pleskian
Server operating system version
Ubuntu 20.04 LTS
Plesk version and microupdate number
18.0.57 #5
I've installed the official MariaDB docker image and want to connect to it remotely. I've turned off Automatic Port Mapping and specified an external port. Trying to connect to that port on the LAN IP address of the server does not work. Turning off the firewall does not change that. Trying to connect to it locally (127.0.0.1) works fine.

I've tried adding a Docker Proxy Rule to a domain, but the connection did not work and my guess is that this makes no sense as MariaDB is no HTTP application and nginx does not allow to reverse proxy a non-HTTP protocol, unless it's been built -with-streams and Plesk's version has not been built with that.

On Using Docker it says that by default, "Docker binds to the specified port on all network interfaces of the host system". This does not seem to be true. If you check the server for LISTEN ports, then it specifically says that "docker-proxy" is only listening on 127.0.0.1, *not* all interfaces. top only lists docker-proxy commands running with "-host-ip 127.0.0.1". And /etc/docker/daemon.json only contains {"ip":"127.0.0.1"}.

So how can I change the docker network configuration (preferably for one particular docker image only) to expose the public port mapping to the correct network interface?
 
Back
Top