Can't use autoCreateCustomNetworks + custom IP + wait
See original GitHub issueDescription
When using a custom network, I am unable to use the tcp wait correctly.
Info
- d-m-p version : 0.19.0
- Maven version (
mvn -v
) : 3.3.9 - Docker version : 1.11.2, build b9f10c9
Repro steps
- Configure a container with a custom network
- Set
autoCreateCustomNetworks
totrue
- Attempt to use a
<wait>
(tcp) configuration for the container - Execute
docker:start
RESULT: thewait
fails
Sample Project
Sample project : https://github.com/who/docker-maven-plugin-bugdemo1
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to set static ip when using default network #3739 - GitHub
So, now it's two ways: define your custom network from docker-compose; configure static ip for container somewhere outside of compose (inside ...
Read more >docker network create - Docker Documentation
Once connected, the containers can communicate using only another container's IP address or name. For overlay networks or custom plugins that support ...
Read more >Configuring and managing networking Red Hat Enterprise ...
Creating static routes configuration files in ip-command format when using the ... Using nmstate-autoconf to automatically configure network interfaces.
Read more >Set up and manage network address translation with Cloud NAT
When you use automatic NAT IP address allocation, Google Cloud reserves IP addresses in your project automatically. These addresses count against your static...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like in your un that the Docker internal DNS resolution didn’t worked (that why nslookup failed). Maybe you could try it by adding a
sleep 2;
just before the nslookup call in the configuration ? Looks like a race condition.Hi, I had a similar issue on my project, after switching to a custom network, the tcp wait were no more working on jenkins side only (were docker host is “localhost”): the wait result was Timeout.
To make tcp wait step working again in that case, I had to enforce wait tcp mode to ‘mapped’. (according to the doc http://dmp.fabric8.io/#start-wait default mode were ‘direct’ when host is localhost)
Example:
My 2 cents