What actually happened?:
The exposed port is bound to 127.0.0.1:32781 instead of 192.168.0.211:3306. Whenever HostIp is specified it binds to 127.0.0.1 and a random port each time.
What did you expect to happen?:
The exposed port should be bound to 192.168.0.211:3306
This is what I am trying to replicate in .NET:
docker run -d --name mysqltest -e MYSQL_ROOT_PASSWORD=test -p 192.168.0.211:3306:3306 mysql
Output of
dotnet --info
:What version of Docker.DotNet?:
Steps to reproduce the issue:
What actually happened?: The exposed port is bound to 127.0.0.1:32781 instead of 192.168.0.211:3306. Whenever HostIp is specified it binds to 127.0.0.1 and a random port each time.
What did you expect to happen?: The exposed port should be bound to 192.168.0.211:3306
This is what I am trying to replicate in .NET:
docker run -d --name mysqltest -e MYSQL_ROOT_PASSWORD=test -p 192.168.0.211:3306:3306 mysql
Additional information: