Plesk for Linux
kb: technical
ABT: Group A
Applicable to:
- Plesk for Linux
Symptoms
- When trying to add a new Docker Proxy rule in Plesk at Domains > example.com > Docker Proxy Rules, no container is shown even if it's running in the Docker extension:
Cause
Docker container has Automatic port mapping enabled.
Resolution
- Log in to Plesk;
- Go to Docker > Container-name > Settings:
- Uncheck the Automatic port mapping setting and specify fixed ports:
Comments
2 comments
Hello, Thanks for the resolution.
I have a problem: when I Deselect "Automatic port mapping ", the Manual mapping doesn't show up !!!
Do you have any why?
Thank you
Hello, @Jaafar
Looks like the container you using has "Expose" option. Docker image used to deploy the container does not have "Expose" option or the required port is not exposed.
Plesk allows mapping ports that are exposed only. A feature request was created to allow specifying custom ports for containers regardless of the EXPOSED directive presence in the image.
https://plesk.uservoice.com/forums/184549-feature-suggestions/suggestions/38134906-allow-to-specify-custom-port-mapping-even-docker-i%C2%A0 Top ranked suggestions will be considered to implement in future Plesk releases.
The following workarounds are available:
1. Use similar image that has the required ports exposed;
2. If there is no such image, create your own image with proper settings.
Please sign in to leave a comment.