Title: Bug: Ryuk fails to start due to port binding (colima, timing) · Issue #486 · testcontainers/testcontainers-python · GitHub
Open Graph Title: Bug: Ryuk fails to start due to port binding (colima, timing) · Issue #486 · testcontainers/testcontainers-python
X Title: Bug: Ryuk fails to start due to port binding (colima, timing) · Issue #486 · testcontainers/testcontainers-python
Description: Describe the bug I upgraded from 3.5.0 to 4.1.0 and the container itself fails to spawn because the Ryuk container setup fails. I've tried debugging the issue and it looks like it is trying to bind the port exposed on IPv6 to the port on...
Open Graph Description: Describe the bug I upgraded from 3.5.0 to 4.1.0 and the container itself fails to spawn because the Ryuk container setup fails. I've tried debugging the issue and it looks like it is trying to bind...
X Description: Describe the bug I upgraded from 3.5.0 to 4.1.0 and the container itself fails to spawn because the Ryuk container setup fails. I've tried debugging the issue and it looks like it is trying to ...
Opengraph URL: https://github.com/testcontainers/testcontainers-python/issues/486
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: Ryuk fails to start due to port binding (colima, timing)","articleBody":"**Describe the bug**\r\n\r\nI upgraded from 3.5.0 to 4.1.0 and the container itself fails to spawn because the Ryuk container setup fails. I've tried debugging the issue and it looks like it is trying to bind the port exposed on IPv6 to the port on IPv4 (the `container_port` variable is correct for IPv4), which are for some reason different ports.\r\n\r\n```bash\r\n$ docker ps\r\nCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES\r\n4f1bad20a38c testcontainers/ryuk:0.5.1 \"/bin/ryuk\" 7 seconds ago Up 5 seconds 0.0.0.0:33029-\u003e8080/tcp, :::32775-\u003e8080/tcp testcontainers-ryuk-1cf580e2-54c4-496d-a1d7-17f495911219\r\n```\r\n\r\n**To Reproduce**\r\n\r\nProvide a self-contained code snippet that illustrates the bug or unexpected behavior. Ideally, send a Pull Request to illustrate with a test that illustrates the problem.\r\n\r\n```python\r\n\u003e Reaper._socket.connect((container_host, container_port))\r\nE ConnectionRefusedError: [Errno 61] Connection refused\r\n```\r\n\r\n**Runtime environment**\r\n\r\nProvide a summary of your runtime environment. Which operating system, python version, and docker version are you using? What is the version of `testcontainers-python` you are using? You can run the following commands to get the relevant information.\r\n\r\n```bash\r\n$ uname -a\r\nDarwin jupiter.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64\r\n$ python --version\r\nPython 3.11.7\r\n$ docker info\r\ngine - Community\r\n Version: 25.0.4\r\n Context: colima\r\n Debug Mode: false\r\n Plugins:\r\n compose: Docker Compose (Docker Inc.)\r\n Version: 2.25.0\r\n Path: /Users/sondre/.docker/cli-plugins/docker-compose\r\n\r\nServer:\r\n Containers: 4\r\n Running: 0\r\n Paused: 0\r\n Stopped: 4\r\n Images: 112\r\n Server Version: 24.0.7\r\n Storage Driver: overlay2\r\n Backing Filesystem: extfs\r\n Supports d_type: true\r\n Using metacopy: false\r\n Native Overlay Diff: true\r\n userxattr: false\r\n Logging Driver: json-file\r\n Cgroup Driver: cgroupfs\r\n Cgroup Version: 2\r\n Plugins:\r\n Volume: local\r\n Network: bridge host ipvlan macvlan null overlay\r\n Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog\r\n Swarm: inactive\r\n Runtimes: io.containerd.runc.v2 runc\r\n Default Runtime: runc\r\n Init Binary: docker-init\r\n containerd version: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523\r\n runc version: v1.1.9-0-gccaecfc\r\n init version: de40ad0\r\n Security Options:\r\n apparmor\r\n seccomp\r\n Profile: builtin\r\n cgroupns\r\n Kernel Version: 6.5.0-21-generic\r\n Operating System: Ubuntu 23.10\r\n OSType: linux\r\n Architecture: aarch64\r\n CPUs: 2\r\n Total Memory: 3.817GiB\r\n Name: colima\r\n ID: ac2c6903-b356-409d-9301-b040440d1efd\r\n Docker Root Dir: /var/lib/docker\r\n Debug Mode: false\r\n Experimental: false\r\n Insecure Registries:\r\n 127.0.0.0/8\r\n Live Restore Enabled: false\r\n```\r\n","author":{"url":"https://github.com/sondr3","@type":"Person","name":"sondr3"},"datePublished":"2024-03-20T14:47:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/486/testcontainers-python/issues/486"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ff42a56c-588d-28ce-afb5-cc3a91993f93 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D86:23BDC1:90302B:C942EF:6A552CDC |
| html-safe-nonce | a8579da6e7c15461abd556aa2ac49a5f0075bf0dd36c578d3483671c41bd1094 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDg2OjIzQkRDMTo5MDMwMkI6Qzk0MkVGOjZBNTUyQ0RDIiwidmlzaXRvcl9pZCI6IjczNTYyOTM2NzU2Nzk1NTg4NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cdc5109a093712819d77848fcd773c7116d9e8b6e0b63a9b87ca818ebe29c7da |
| hovercard-subject-tag | issue:2197729359 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/testcontainers/testcontainers-python/486/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0912f5608e205e778be8e949cef8e4de287ebfd6ef75895b9109dd370857eb2f/testcontainers/testcontainers-python/issues/486 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0912f5608e205e778be8e949cef8e4de287ebfd6ef75895b9109dd370857eb2f/testcontainers/testcontainers-python/issues/486 |
| og:image:alt | Describe the bug I upgraded from 3.5.0 to 4.1.0 and the container itself fails to spawn because the Ryuk container setup fails. I've tried debugging the issue and it looks like it is trying to bind... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sondr3 |
| hostname | github.com |
| expected-hostname | github.com |
| None | fbd8fce4d63ac394c5405faa20aa50d5c9e56b979ac43ee1b26f8e7c47c4cd89 |
| turbo-cache-control | no-preview |
| go-import | github.com/testcontainers/testcontainers-python git https://github.com/testcontainers/testcontainers-python.git |
| octolytics-dimension-user_id | 13393021 |
| octolytics-dimension-user_login | testcontainers |
| octolytics-dimension-repository_id | 85802819 |
| octolytics-dimension-repository_nwo | testcontainers/testcontainers-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 85802819 |
| octolytics-dimension-repository_network_root_nwo | testcontainers/testcontainers-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cf96660b44878f418b09d3d6ecde00ad62332910 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width