Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
How to create a container with port mapping ? #282
I am trying to use Citrus to start a dockerized database server, and then execute sql statements to populate the database. In order to access the database, I would like to map the port 1521 to the docker host. I thought that the property "portSpecs" on "ContainerCreate" was the right way to do this, but I tried different formats (eg "1521:1521", or "1521;1521") and none of them worked: when I run "docker inspect" on the newly created container, I can see that the port 1521 is not mapped to the host.
Did I miss the right way to perform this configuration?
I also found out that the CreateContainerCmd interface in the docker-java library both has a "portSpecs" and a "portBindings" property. But it does not seem to me that I can access the latter in Citrus.