Unable to map more than one port for a Docker container in Plesk

Created:

2016-12-12 03:44:14 UTC

Modified:

2017-08-16 17:16:11 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to map more than one port for a Docker container in Plesk

Applicable to:

  • Plesk Onyx for Linux

Symptoms

Unable to map more than one port for a Docker container in Plesk:

Ports that are required to be mapped are not exposed: not specified in the directive expose when an image is created.

Cause

At the moment Plesk allows mapping ports that are exposed only. The extended functionality for port mapping is going to be implemented in one of the future releases.

Workaround

At the moment, several workarounds are possible:

  1. Use an analogue image that has required ports exposed;

  2. If there is no such image, create your own image with proper settings;

  3. Run a container from a command-line interface. For more information, please refer to official documentation for the used image.

Have more questions? Submit a request
Please sign in to leave a comment.