Commit 5018486
Workaround Docker#42442 by using IPv4 SSH only
As described in moby/moby#42442,
docker daemon starts to expose a container port on different host ports
for IPv4 and IPv6 which breaks the ssh/safe-ssh/ansible backend
tests for some containers.
To prevent this behavior and flaky tests, only the first line from the
`docker port %s 22` command gets parsed to acquire the mapped SSH port.1 parent ca0f8bd commit 5018486
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| |||
0 commit comments