mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(docker): open long-lived exec streams on the streaming Docker pool (#8950)
* fix(docker): open long-lived exec streams on the streaming Docker pool CodeBuild build phases, SSM run commands, ECS Exec sessions, the EKS audit log follower, ECR garbage collection, EC2 and EKS user data scripts and EMR bootstrap actions held a control-plane connection for as long as their exec ran, so enough of them could leave the short Docker calls waiting for a lease. Their exec starts now use the @StreamingDocker client: ContainerLifecycleManager exposes getStreamingDockerClient(), CodeBuildRunner and SsmDirectCommandExecutor inject it, and UserDataPipeline and ContainerExec take it beside the control-plane client. Neither transport replays an exec start and both exempt it from the response timeout, so only the pool changes; creating, inspecting and resizing an exec stay on the control plane. The connection pool docs, the environment variable tables, the application.yml comment and the javadocs now name these streams. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * fix(codebuild): close a timed-out phase's output stream, and drop the test-only constructor runPhase discarded the callback of its exec start, so a phase that timed out or was interrupted left its output stream open, now holding a streaming connection for as long as the command ran on; it is now closed. ContainerLifecycleManager's public four-argument constructor existed only so tests could pass one client for both pools; it goes, and those tests name both clients through the injected constructor. Signed-off-by: Hector Ventura <hectorvent@gmail.com> * test(docker): give the reachability test the streaming client the constructor now takes Signed-off-by: Hector Ventura <hectorvent@gmail.com> #8951 added ContainerLifecycleManagerReachabilityTest with the four-argument constructor this branch removes, so the two no longer compiled together on main. --------- Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
1 parent
aabe2247c5
commit
ad0e47910f
54 files changed
+322
-113
No files matched your search
@@ -4392,11 +4392,10 @@ public interface EmulatorConfig {
|
||||
|
||||
/**
|
||||
* Size of the connection pool behind the shared Docker client. Every short Docker call
|
||||
* leases a connection from it, and a few streams hold one for as long as they run:
|
||||
* CodeBuild phase execs, EKS audit followers and ECS Exec sessions. The streams a Lambda
|
||||
* container holds for its whole lifetime live in the separate streaming pool. Once
|
||||
* long-lived connections fill this pool, create, start, stop and remove wait for a free
|
||||
* connection, including the calls that would release one, so the emulator stalls.
|
||||
* leases a connection from it; streams that stay open while a container or a command runs
|
||||
* live in the separate streaming pool. Once this pool is full, create, start, stop and
|
||||
* remove wait for a free connection, including the calls that would release one, so the
|
||||
* emulator stalls.
|
||||
*
|
||||
* <p>1024 rather than the former hard-coded 100. Connections are opened on demand, so a
|
||||
* small stack never approaches the limit.
|
||||
@@ -4406,8 +4405,11 @@ public interface EmulatorConfig {
|
||||
|
||||
/**
|
||||
* Connection pool size for the {@code @StreamingDocker} DockerClient, sized for the
|
||||
* long-lived streams that occupy a slot for a container's entire lifetime: container log
|
||||
* follow, and for each Lambda container its exit watcher and one exec per extension.
|
||||
* long-lived streams that occupy a slot for a container's entire lifetime or a long
|
||||
* command's run: container log follow, for each Lambda container its exit watcher and one
|
||||
* exec per extension, and the output of each CodeBuild phase, SSM command, ECS Exec
|
||||
* session, EKS audit follower, ECR garbage collection, user data script and EMR bootstrap
|
||||
* action.
|
||||
* Total live containers is unbounded across distinct functions (each {@code WarmPool}
|
||||
* caps only per-function), so this pool is sized generously rather than tied to any
|
||||
* single function's warm-pool cap.
|
||||
|
||||
@@ -91,6 +91,18 @@ public final class ContainerExec {
|
||||
*/
|
||||
public static Result run(DockerClient dockerClient, String containerId, String[] cmd, List<String> env,
|
||||
int timeoutSeconds, OutputStream stdout, OutputStream stderr) {
|
||||
return run(dockerClient, dockerClient, containerId, cmd, env, timeoutSeconds, stdout, stderr);
|
||||
}
|
||||
|
||||
/**
|
||||
* As {@link #run(DockerClient, String, String[], List, int, OutputStream, OutputStream)}, the command's
|
||||
* output read over {@code streamingDockerClient}: for a command that may run for a long time, such as a
|
||||
* user's script, so its output stream holds a streaming lease rather than a control-plane one. The exec
|
||||
* is still created and inspected on {@code dockerClient}.
|
||||
*/
|
||||
public static Result run(DockerClient dockerClient, DockerClient streamingDockerClient, String containerId,
|
||||
String[] cmd, List<String> env, int timeoutSeconds, OutputStream stdout,
|
||||
OutputStream stderr) {
|
||||
ExecCreateCmd create = dockerClient.execCreateCmd(containerId)
|
||||
.withCmd(cmd)
|
||||
.withAttachStdout(true)
|
||||
@@ -118,7 +130,7 @@ public final class ContainerExec {
|
||||
}
|
||||
}
|
||||
};
|
||||
dockerClient.execStartCmd(execId).exec(callback);
|
||||
streamingDockerClient.execStartCmd(execId).exec(callback);
|
||||
|
||||
try {
|
||||
// docker-java closes the attach stream on completion, timeout, or interruption.
|
||||
|
||||
@@ -94,6 +94,7 @@ public class ContainerLifecycleManager {
|
||||
private static final String LOOPBACK_HOST_IP = "127.0.0.1";
|
||||
|
||||
private final DockerClient dockerClient;
|
||||
private final DockerClient streamingDockerClient;
|
||||
private final ImageCacheService imageCacheService;
|
||||
private final ContainerDetector containerDetector;
|
||||
private final EmulatorConfig config;
|
||||
@@ -112,11 +113,12 @@ public class ContainerLifecycleManager {
|
||||
|
||||
@Inject
|
||||
public ContainerLifecycleManager(DockerClient dockerClient,
|
||||
@StreamingDocker DockerClient streamingDockerClient,
|
||||
ImageCacheService imageCacheService,
|
||||
ContainerDetector containerDetector,
|
||||
EmulatorConfig config) {
|
||||
this(dockerClient, imageCacheService, containerDetector, config,
|
||||
RetryingTarCopier.DEFAULT_BACKOFF_MS);
|
||||
this(dockerClient, streamingDockerClient, imageCacheService, containerDetector, config,
|
||||
RetryingTarCopier.DEFAULT_BACKOFF_MS, System::nanoTime, TimeUnit.NANOSECONDS::sleep);
|
||||
}
|
||||
|
||||
ContainerLifecycleManager(DockerClient dockerClient,
|
||||
@@ -135,7 +137,20 @@ public class ContainerLifecycleManager {
|
||||
long archiveRetryBackoffMillis,
|
||||
LongSupplier nanoTime,
|
||||
CreateWait createWait) {
|
||||
this(dockerClient, dockerClient, imageCacheService, containerDetector, config, archiveRetryBackoffMillis,
|
||||
nanoTime, createWait);
|
||||
}
|
||||
|
||||
private ContainerLifecycleManager(DockerClient dockerClient,
|
||||
DockerClient streamingDockerClient,
|
||||
ImageCacheService imageCacheService,
|
||||
ContainerDetector containerDetector,
|
||||
EmulatorConfig config,
|
||||
long archiveRetryBackoffMillis,
|
||||
LongSupplier nanoTime,
|
||||
CreateWait createWait) {
|
||||
this.dockerClient = dockerClient;
|
||||
this.streamingDockerClient = streamingDockerClient;
|
||||
this.imageCacheService = imageCacheService;
|
||||
this.containerDetector = containerDetector;
|
||||
this.config = config;
|
||||
@@ -1606,6 +1621,17 @@ public class ContainerLifecycleManager {
|
||||
return dockerClient;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the {@link StreamingDocker} client, for a request that holds its connection for as long
|
||||
* as what it follows, so it never takes a control-plane lease: an exec start whose output may run
|
||||
* long, a container wait, or a followed log. Only those belong here: the streaming transport
|
||||
* replays nothing but a container wait after a dropped connection, while the control-plane one
|
||||
* also replays reads.
|
||||
*/
|
||||
public DockerClient getStreamingDockerClient() {
|
||||
return streamingDockerClient;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns {@code true} if the container runtime (Docker, Moby, or Podman) has a volume
|
||||
* with the given name. The volume does not need to be attached to the current container.
|
||||
|
||||
@@ -438,7 +438,6 @@ public class DockerClientProducer {
|
||||
* short-lived call in Floci. Kept on its own connection pool, separate from the
|
||||
* {@link StreamingDocker} bean, so long-lived streams can never occupy every lease in this
|
||||
* pool and starve these short calls until httpclient5's connection-request timeout fires.
|
||||
* CodeBuild phase execs, EKS audit followers and ECS Exec sessions still use this pool.
|
||||
*/
|
||||
@Produces
|
||||
@ApplicationScoped
|
||||
@@ -449,7 +448,8 @@ public class DockerClientProducer {
|
||||
|
||||
/**
|
||||
* Streaming DockerClient: container log-follow ({@link ContainerLogStreamer}), Lambda
|
||||
* extension execs and Lambda exit watchers, and Lambda Web attach streams. Each
|
||||
* extension execs and Lambda exit watchers, Lambda Web attach streams, and the output of
|
||||
* long-running execs (CodeBuild phases, SSM run commands, ECS Exec sessions, EKS audit log followers, ECR garbage collection, EC2 and EKS user data and EMR bootstrap actions). Each
|
||||
* stream occupies a connection pool slot for its entire lifetime, so sharing the
|
||||
* control-plane pool meant a fan-out of many concurrent streams exhausted it and blocked
|
||||
* control-plane calls. Sized separately because {@code WarmPool}'s cap is per-function,
|
||||
|
||||
@@ -10,7 +10,9 @@ import java.lang.annotation.Target;
|
||||
/**
|
||||
* CDI qualifier for the DockerClient dedicated to long-lived streaming operations:
|
||||
* container log-follow ({@link ContainerLogStreamer}), Lambda extension execs and exit
|
||||
* watchers, and Lambda Web attach streams. These calls occupy a connection pool
|
||||
* watchers, Lambda Web attach streams, and the output of long-running execs (CodeBuild phases,
|
||||
* SSM run commands, ECS Exec sessions, EKS audit log followers, ECR garbage collection, EC2 and EKS
|
||||
* user data, EMR bootstrap actions). These calls occupy a connection pool
|
||||
* slot for a container's entire lifetime, so they must not share a pool
|
||||
* with short-lived control-plane calls (create/start/stop/remove/copyArchive): a fan-out
|
||||
* of many long-lived streams would otherwise starve the control-plane calls out of a
|
||||
|
||||
@@ -215,8 +215,14 @@ public final class UserDataPipeline {
|
||||
return text;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dockerClient copies the scripts in, creates and inspects their execs
|
||||
* @param streamingDockerClient carries each script's output, a stream that stays open for as long as the
|
||||
* script runs, so it holds a streaming lease rather than a control-plane one
|
||||
*/
|
||||
public static ExecutionResult executeUserData(
|
||||
DockerClient dockerClient,
|
||||
DockerClient streamingDockerClient,
|
||||
String containerId,
|
||||
String contextDescription,
|
||||
String userData,
|
||||
@@ -224,12 +230,13 @@ public final class UserDataPipeline {
|
||||
Consumer<String> outputLineConsumer,
|
||||
Set<ResultCallback<Frame>> activeCallbacks
|
||||
) {
|
||||
return executeUserData(dockerClient, containerId, contextDescription, userData, timeout,
|
||||
return executeUserData(dockerClient, streamingDockerClient, containerId, contextDescription, userData, timeout,
|
||||
outputLineConsumer, activeCallbacks, RetryingTarCopier.DEFAULT_BACKOFF_MS);
|
||||
}
|
||||
|
||||
static ExecutionResult executeUserData(
|
||||
DockerClient dockerClient,
|
||||
DockerClient streamingDockerClient,
|
||||
String containerId,
|
||||
String contextDescription,
|
||||
String userData,
|
||||
@@ -238,7 +245,7 @@ public final class UserDataPipeline {
|
||||
Set<ResultCallback<Frame>> activeCallbacks,
|
||||
long archiveRetryBackoffMillis
|
||||
) {
|
||||
if (dockerClient == null || containerId == null || containerId.isBlank()) {
|
||||
if (dockerClient == null || streamingDockerClient == null || containerId == null || containerId.isBlank()) {
|
||||
return ExecutionResult.skipped("No container available");
|
||||
}
|
||||
List<String> shellScripts = extractShellScripts(userData);
|
||||
@@ -252,7 +259,8 @@ public final class UserDataPipeline {
|
||||
int partCount = shellScripts.size();
|
||||
String scriptContent = shellScripts.get(i);
|
||||
ExecutionResult partResult = executeSingleScript(
|
||||
dockerClient, containerId, contextDescription, scriptContent, partNumber, partCount,
|
||||
dockerClient, streamingDockerClient, containerId, contextDescription, scriptContent, partNumber,
|
||||
partCount,
|
||||
effectiveTimeout, outputLineConsumer, activeCallbacks, archiveRetryBackoffMillis);
|
||||
if (!partResult.isSuccess()) {
|
||||
return partResult;
|
||||
@@ -263,6 +271,7 @@ public final class UserDataPipeline {
|
||||
|
||||
private static ExecutionResult executeSingleScript(
|
||||
DockerClient dockerClient,
|
||||
DockerClient streamingDockerClient,
|
||||
String containerId,
|
||||
String contextDescription,
|
||||
String scriptContent,
|
||||
@@ -345,7 +354,7 @@ public final class UserDataPipeline {
|
||||
}
|
||||
|
||||
try {
|
||||
dockerClient.execStartCmd(execId).exec(callback);
|
||||
streamingDockerClient.execStartCmd(execId).exec(callback);
|
||||
|
||||
boolean completed = latch.await(timeout.toMillis(), TimeUnit.MILLISECONDS);
|
||||
if (!completed) {
|
||||
|
||||
@@ -20,6 +20,7 @@ import io.floci.aws.core.common.docker.ContainerSpec;
|
||||
import io.floci.aws.core.common.docker.ContainerStorageHelper;
|
||||
import io.floci.aws.core.common.docker.RetryingTarCopier;
|
||||
import io.floci.aws.core.common.docker.RunLabelledContainers;
|
||||
import io.floci.aws.core.common.docker.StreamingDocker;
|
||||
import io.floci.aws.services.codebuild.BuildspecParser.ParsedArtifacts;
|
||||
import io.floci.aws.services.codebuild.BuildspecParser.ParsedBuildspec;
|
||||
import io.floci.aws.services.codebuild.model.Build;
|
||||
@@ -76,6 +77,8 @@ public class CodeBuildRunner implements ContainerTeardown, VpcDependencyProvider
|
||||
private static final int FAILURE_OUTPUT_CHARS = 512;
|
||||
|
||||
private final DockerClient dockerClient;
|
||||
/** Carries a phase's output, a stream that stays open for as long as the phase runs. */
|
||||
private final DockerClient streamingDockerClient;
|
||||
private final ContainerBuilder containerBuilder;
|
||||
private final ContainerLifecycleManager lifecycleManager;
|
||||
private final ContainerLogStreamer logStreamer;
|
||||
@@ -97,6 +100,7 @@ public class CodeBuildRunner implements ContainerTeardown, VpcDependencyProvider
|
||||
|
||||
@Inject
|
||||
public CodeBuildRunner(DockerClient dockerClient,
|
||||
@StreamingDocker DockerClient streamingDockerClient,
|
||||
ContainerBuilder containerBuilder,
|
||||
ContainerLifecycleManager lifecycleManager,
|
||||
ContainerLogStreamer logStreamer,
|
||||
@@ -110,6 +114,7 @@ public class CodeBuildRunner implements ContainerTeardown, VpcDependencyProvider
|
||||
Ec2Service ec2Service,
|
||||
CodeBuildRoleCredentials roleCredentials) {
|
||||
this.dockerClient = dockerClient;
|
||||
this.streamingDockerClient = streamingDockerClient;
|
||||
this.containerBuilder = containerBuilder;
|
||||
this.lifecycleManager = lifecycleManager;
|
||||
this.logStreamer = logStreamer;
|
||||
@@ -722,6 +727,7 @@ public class CodeBuildRunner implements ContainerTeardown, VpcDependencyProvider
|
||||
String script = String.join("\n", commands);
|
||||
String[] cmd = {"sh", "-e", "-c", script};
|
||||
|
||||
Closeable phaseOutput = null;
|
||||
try {
|
||||
String execId = dockerClient.execCreateCmd(containerId)
|
||||
.withCmd(cmd)
|
||||
@@ -735,7 +741,7 @@ public class CodeBuildRunner implements ContainerTeardown, VpcDependencyProvider
|
||||
CountDownLatch latch = new CountDownLatch(1);
|
||||
OutputTail outputCapture = new OutputTail();
|
||||
|
||||
dockerClient.execStartCmd(execId).exec(new ResultCallback.Adapter<Frame>() {
|
||||
phaseOutput = streamingDockerClient.execStartCmd(execId).exec(new ResultCallback.Adapter<Frame>() {
|
||||
@Override
|
||||
public void onNext(Frame frame) {
|
||||
if (frame.getPayload() != null) {
|
||||
@@ -750,6 +756,8 @@ public class CodeBuildRunner implements ContainerTeardown, VpcDependencyProvider
|
||||
|
||||
boolean completed = latch.await(timeoutMinutes, TimeUnit.MINUTES);
|
||||
if (!completed) {
|
||||
// Its output would otherwise hold a streaming connection for as long as the command runs on.
|
||||
closePhaseOutput(phaseOutput);
|
||||
return PhaseResult.ofFailure("Phase timed out after " + timeoutMinutes + " minutes");
|
||||
}
|
||||
if (stopFlag.get()) {
|
||||
@@ -769,6 +777,7 @@ public class CodeBuildRunner implements ContainerTeardown, VpcDependencyProvider
|
||||
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
closePhaseOutput(phaseOutput);
|
||||
return PhaseResult.ofStopped();
|
||||
} catch (Exception e) {
|
||||
if (stopFlag.get()) {
|
||||
@@ -778,6 +787,17 @@ public class CodeBuildRunner implements ContainerTeardown, VpcDependencyProvider
|
||||
}
|
||||
}
|
||||
|
||||
private static void closePhaseOutput(Closeable phaseOutput) {
|
||||
if (phaseOutput == null) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
phaseOutput.close();
|
||||
} catch (IOException e) {
|
||||
LOG.debugv(e, "Could not close a CodeBuild phase's output stream");
|
||||
}
|
||||
}
|
||||
|
||||
private void uploadArtifacts(String region, Build build, Project project,
|
||||
ParsedArtifacts artifacts, Path workspace) throws IOException {
|
||||
String type = artifacts.type();
|
||||
|
||||
@@ -2009,8 +2009,8 @@ public class Ec2ContainerManager {
|
||||
};
|
||||
|
||||
UserDataPipeline.executeUserData(
|
||||
dockerClient, containerId, "EC2 instance " + instanceId, userData,
|
||||
userDataExecutionTimeout, lineConsumer, activeUserDataCallbacks);
|
||||
dockerClient, lifecycleManager.getStreamingDockerClient(), containerId, "EC2 instance " + instanceId,
|
||||
userData, userDataExecutionTimeout, lineConsumer, activeUserDataCallbacks);
|
||||
}
|
||||
|
||||
private void closeActiveUserDataCallbacks() {
|
||||
|
||||
@@ -715,7 +715,8 @@ public class EcrRegistryManager {
|
||||
final String finalExecId = execId;
|
||||
|
||||
try {
|
||||
ResultCallback.Adapter<Frame> asyncCallback = dockerClient.execStartCmd(finalExecId)
|
||||
ResultCallback.Adapter<Frame> asyncCallback = lifecycleManager.getStreamingDockerClient()
|
||||
.execStartCmd(finalExecId)
|
||||
.exec(new ResultCallback.Adapter<Frame>() {
|
||||
@Override
|
||||
public void onNext(Frame frame) {
|
||||
|
||||
@@ -193,7 +193,7 @@ public class EcsExecChannelHandler {
|
||||
return;
|
||||
}
|
||||
containerInput = toContainer;
|
||||
vertx.<Closeables>executeBlocking(() -> new Closeables(lifecycleManager.getDockerClient()
|
||||
vertx.<Closeables>executeBlocking(() -> new Closeables(lifecycleManager.getStreamingDockerClient()
|
||||
.execStartCmd(id)
|
||||
.withStdIn(execStdin)
|
||||
.withTty(current.interactive())
|
||||
|
||||
@@ -1816,7 +1816,7 @@ public class EksClusterManager
|
||||
.withAttachStdout(true)
|
||||
.withAttachStderr(false)
|
||||
.exec();
|
||||
return dockerClient
|
||||
return lifecycleManager.getStreamingDockerClient()
|
||||
.execStartCmd(execCreate.getId())
|
||||
.exec(logStreamer.execLogCallbackForAccount(
|
||||
accountId, logGroup, logStream, region, "eks-audit:" + clusterName, false));
|
||||
@@ -3874,6 +3874,7 @@ public class EksClusterManager
|
||||
}
|
||||
return UserDataPipeline.executeUserData(
|
||||
dockerClient,
|
||||
lifecycleManager.getStreamingDockerClient(),
|
||||
node.containerId(),
|
||||
context,
|
||||
userData,
|
||||
|
||||
@@ -216,8 +216,9 @@ public class EmrBootstrapRunner implements BootstrapRunner, ContainerTeardown {
|
||||
ContainerExec.Result result;
|
||||
try (ActionOutput stdout = new ActionOutput(prefix, logged);
|
||||
ActionOutput stderr = new ActionOutput(prefix, logged)) {
|
||||
result = ContainerExec.run(lifecycleManager.getDockerClient(), containerId,
|
||||
command.toArray(String[]::new), env, NO_TIMEOUT, stdout, stderr);
|
||||
// A user's script with no timeout: its output streams on the streaming pool for as long as it runs.
|
||||
result = ContainerExec.run(lifecycleManager.getDockerClient(), lifecycleManager.getStreamingDockerClient(),
|
||||
containerId, command.toArray(String[]::new), env, NO_TIMEOUT, stdout, stderr);
|
||||
if (logged) {
|
||||
writeLogs(bootstrap, number, stdout, stderr);
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.github.dockerjava.api.async.ResultCallback;
|
||||
import com.github.dockerjava.api.command.ExecCreateCmd;
|
||||
import com.github.dockerjava.api.model.Frame;
|
||||
import com.github.dockerjava.api.model.StreamType;
|
||||
import io.floci.aws.core.common.docker.StreamingDocker;
|
||||
import io.floci.aws.services.ec2.Ec2Service;
|
||||
import io.floci.aws.services.ec2.model.Instance;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
@@ -27,11 +28,15 @@ public class SsmDirectCommandExecutor {
|
||||
private static final Logger LOG = Logger.getLogger(SsmDirectCommandExecutor.class);
|
||||
|
||||
private final DockerClient dockerClient;
|
||||
/** Carries a command's output, a stream that stays open for as long as the command runs. */
|
||||
private final DockerClient streamingDockerClient;
|
||||
private final Ec2Service ec2Service;
|
||||
|
||||
@Inject
|
||||
public SsmDirectCommandExecutor(DockerClient dockerClient, Ec2Service ec2Service) {
|
||||
public SsmDirectCommandExecutor(DockerClient dockerClient, @StreamingDocker DockerClient streamingDockerClient,
|
||||
Ec2Service ec2Service) {
|
||||
this.dockerClient = dockerClient;
|
||||
this.streamingDockerClient = streamingDockerClient;
|
||||
this.ec2Service = ec2Service;
|
||||
}
|
||||
|
||||
@@ -125,7 +130,8 @@ public class SsmDirectCommandExecutor {
|
||||
BoundedOutputCollector stdout = new BoundedOutputCollector(SsmCommandService.MAX_STDOUT_CHARS);
|
||||
Instant start = Instant.now();
|
||||
|
||||
ResultCallback<Frame> callback = dockerClient.execStartCmd(execId).exec(new ResultCallback.Adapter<Frame>() {
|
||||
ResultCallback<Frame> callback = streamingDockerClient.execStartCmd(execId)
|
||||
.exec(new ResultCallback.Adapter<Frame>() {
|
||||
@Override
|
||||
public void onNext(Frame frame) {
|
||||
byte[] payload = frame.getPayload();
|
||||
|
||||
Reference in new issue
Block a user