Workaround and document weird docker issue#3574
Conversation
Signed-off-by: apostasie <spam_blackhole@farcloser.world>
a24e7f4 to
5609de3
Compare
| }, | ||
| Setup: func(data test.Data, helpers test.Helpers) { | ||
| // FIXME: short of pulling first, docker will fail to start the container. | ||
| // Debugging shows container exited immediately. Nothing in the container logs. Not much in journalctl. |
There was a problem hiding this comment.
Can you repro the issue without using the nerdctl test suite?
There was a problem hiding this comment.
Should be reported to https://github.com/moby/moby/issues
There was a problem hiding this comment.
It does happen on #3535, but I cannot repro locally for now.
I believe it was previously hidden with retries.
I will report on moby if I manage to get a reproducer outside of the CI context.
There was a problem hiding this comment.
No idea; haven't seen that issue. With the default pull policy ("missing"), the CLI should trigger a pull when the API endpoint returns a 404; https://github.com/docker/cli/blob/8a7c5ae68f42061fa3085736b91a9e831e0eab07/cli/command/container/create.go#L272-L289
There was a problem hiding this comment.
I believe the pull was successful on run.
Totally spitballing: this might be a race issue with docker starting and starting a container?
Seen while debugging #3535
Not quite sure what is going on, but for now the workaround will do.
Tagging @thaJeztah in case there would be interest in investigating more.