Skip to content

Commit

Permalink
Docker - Remove Deprecated Types (apache#30826)
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-burrell authored Apr 5, 2024
1 parent 4eefc6d commit 1651e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdks/go/pkg/beam/runners/prism/internal/environments.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func dockerEnvironment(ctx context.Context, logger *slog.Logger, dp *pipepb.Dock
containerID := ccr.ID
logger = logger.With("container", containerID)

if err := cli.ContainerStart(ctx, containerID, dtyp.ContainerStartOptions{}); err != nil {
if err := cli.ContainerStart(ctx, containerID, container.StartOptions{}); err != nil {
cli.Close()
return fmt.Errorf("unable to start container image %v with docker for env %v, err: %w", dp.GetContainerImage(), wk.Env, err)
}
Expand All @@ -189,7 +189,7 @@ func dockerEnvironment(ctx context.Context, logger *slog.Logger, dp *pipepb.Dock
case resp := <-statusCh:
logger.Info("docker container has self terminated", "status_code", resp.StatusCode)

rc, err := cli.ContainerLogs(ctx, containerID, dtyp.ContainerLogsOptions{Details: true, ShowStdout: true, ShowStderr: true})
rc, err := cli.ContainerLogs(ctx, containerID, container.LogsOptions{Details: true, ShowStdout: true, ShowStderr: true})
if err != nil {
logger.Error("docker container logs error", "error", err)
}
Expand Down

0 comments on commit 1651e54

Please sign in to comment.