• 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 How to block external connections into Docker container

Domm

New Pleskian
When you create a Docker container through Plesk and that container has port mappings, then the host ports are automatically opened to the external network.

For example, if you create a MySQL container, and it has the port mapping 32768:3306, then port 32768 on the host machine is implicitly opened to the external network. This means people can attempt to connect to the MySQL server within the container.

I haven't been able to block this using Plesk firewall.

Can anyone suggest a way of securing Docker containers within Plesk, so that they are not just open to the world?
 
Back
Top