Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a container with port mapping ? #282

Closed
alexandremenif opened this Issue Aug 16, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@alexandremenif
Copy link

alexandremenif commented Aug 16, 2017

Hello,

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.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.