• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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