Title: waitContainerCmd is useless when container has autoRemove or is short lived · Issue #2356 · docker-java/docker-java · GitHub
Open Graph Title: waitContainerCmd is useless when container has autoRemove or is short lived · Issue #2356 · docker-java/docker-java
X Title: waitContainerCmd is useless when container has autoRemove or is short lived · Issue #2356 · docker-java/docker-java
Description: Because we can not change the condition of wait (https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Container/operation/ContainerWait), if the container is destroyed before wait can be used, then we have no way to get the st...
Open Graph Description: Because we can not change the condition of wait (https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Container/operation/ContainerWait), if the container is destroyed before wait can be...
X Description: Because we can not change the condition of wait (https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Container/operation/ContainerWait), if the container is destroyed before wait can be...
Opengraph URL: https://github.com/docker-java/docker-java/issues/2356
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"waitContainerCmd is useless when container has autoRemove or is short lived ","articleBody":"Because we can not change the `condition` of wait (https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Container/operation/ContainerWait), if the container is destroyed before wait can be used, then we have no way to get the status code.\r\n\r\nAlso, the fact that we need to exec waitContainerCmd after the container start, is weird.\r\n\r\nIn my case, I have overridden the `WaitContainerCmdExec` class so the condition to be `next-exit` for my use case. With this, I am able to start waiting before starting the container and therefore get the status code.\r\n\r\nI recommend having a way to set the condition on wait container.","author":{"url":"https://github.com/bitstrings","@type":"Person","name":"bitstrings"},"datePublished":"2024-10-13T22:24:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2356/docker-java/issues/2356"}
| 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:bcd0e7c9-2e4e-7db6-6a01-77d9d4265e74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD38:292C2E:666A87:8B905C:69735BC1 |
| html-safe-nonce | d1c60f8eade40d6da0d03053b3d589073777e988183febe2e9e43842f86d74bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDM4OjI5MkMyRTo2NjZBODc6OEI5MDVDOjY5NzM1QkMxIiwidmlzaXRvcl9pZCI6IjQxMTQzOTA0NTI5ODUzNTUyMDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ec02275eacb70d4554cde30572cb110bbbb0b8381f8aea051b22e9928f57b8e1 |
| hovercard-subject-tag | issue:2584318400 |
| 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/docker-java/docker-java/2356/issue_layout |
| twitter:image | https://opengraph.githubassets.com/70157ce61346e188193403964424b3e71e4e7c6686c099c9de2f924ef4a79877/docker-java/docker-java/issues/2356 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/70157ce61346e188193403964424b3e71e4e7c6686c099c9de2f924ef4a79877/docker-java/docker-java/issues/2356 |
| og:image:alt | Because we can not change the condition of wait (https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Container/operation/ContainerWait), if the container is destroyed before wait can be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bitstrings |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4cf879a11b0a28a85543899a36aaee9ec9ca2fb7bedad86c0da5731193c95f01 |
| turbo-cache-control | no-preview |
| go-import | github.com/docker-java/docker-java git https://github.com/docker-java/docker-java.git |
| octolytics-dimension-user_id | 7772003 |
| octolytics-dimension-user_login | docker-java |
| octolytics-dimension-repository_id | 20415251 |
| octolytics-dimension-repository_nwo | docker-java/docker-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20415251 |
| octolytics-dimension-repository_network_root_nwo | docker-java/docker-java |
| 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 | 63c75712c8aa15b01c097cbf3f10ca694d449599 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width