Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Ryuk logs when it fails to start #4842

Merged
merged 5 commits into from Jan 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -34,7 +34,6 @@
import java.net.Socket;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.Collections;
Expand Down Expand Up @@ -141,7 +140,14 @@ public void onNext(Frame frame) {
.pollInterval(DynamicPollInterval.ofMillis(50))
.pollInSameThread()
.until(
() -> client.inspectContainerCmd(ryukContainerId).exec(),
() -> {
try {
return client.inspectContainerCmd(ryukContainerId).exec();
} catch(NotFoundException e) {
vincz7777 marked this conversation as resolved.
Show resolved Hide resolved
log.debug("Ryuk container cannot be found and probably had a problem starting. Ryuk's logs:\n{}", ryukLog);
bsideup marked this conversation as resolved.
Show resolved Hide resolved
throw e;
}
},
inspectContainerResponse -> {
return inspectContainerResponse
.getNetworkSettings()
Expand Down