Skip to content

Commit

Permalink
POD-823: Print warning instead of error for configuring daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
bkneis committed Sep 10, 2024
1 parent 6b568d8 commit 712436d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/agent/workspace/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,15 @@ func initWorkspace(ctx context.Context, cancel context.CancelFunc, workspaceInfo
if workspaceInfo.Agent.IsDockerDriver() && err != nil && !local {
errChan <- configureDockerDaemon(ctx, logger)
} else {
logger.Debug("Skipping configuring daemon")
errChan <- nil
}

// wait until docker daemon is configured
err = <-errChan
if err != nil {
return nil, nil, "", errors.Wrap(err, "configure docker")
logger.Warn("Could not find docker daemon config file, if using the registry cache, please ensure the daemon is configured with containerd-snapshotter=true")
logger.Warn("More info at https://docs.docker.com/engine/storage/containerd/")
}

return tunnelClient, logger, dockerCredentialsDir, nil
Expand Down

0 comments on commit 712436d

Please sign in to comment.