Description
Summary
Bamboo Docker plugin does unnecessary call for host port when it is provided in configuration
Steps to Reproduce
- create plan
- add Docker task
- pick command "Run Docker container"
- select "Detach container"
- add port mapping
- select "Wait for service to start"
Expected Results
Bamboo will use port provided in the mapping for testing service availability.
Actual Results
Bamboo uses port provided in the mapping for testing service availability but still queries Docker using
docker inspect --format='{{(index (index .NetworkSettings.Ports "<port>/tcp") 0).HostPort}}' <container-name>
This also makes this operation fail on Windows (see https://jira.atlassian.com/browse/BAM-17959)