Applicable to:
- Plesk for Linux
Symptoms
-
Manual mapping option cannot be selected when launching a Docker container
-
The Automatic port mapping option is disabled
Cause
The Docker image used to deploy the container does not have EXPOSE option or the required port is not exposed.
Plesk only allows mapping ports that are exposed. A feature request was created to allow specifying custom ports for containers regardless of the EXPOSED directive presence in the image.
Feature request to implement specifying custom ports when they are not exposed in image
Top ranked suggestions will be considered for implementation in future Plesk releases.
Resolution
The following workarounds are available:
-
Use a similar image that has the required ports exposed
-
If there is no such image, create own image with proper settings
-
Run the container from command-line interface. For more information, refer to official documentation for the used image.
Comments
0 comments
Please sign in to leave a comment.