Skip to content

Commit

Permalink
Fix podman CreateContainer method
Browse files Browse the repository at this point in the history
  • Loading branch information
LimeHat committed Feb 21, 2022
1 parent de72693 commit 907286c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/podman/podman.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ func (r *PodmanRuntime) PullImageIfRequired(ctx context.Context, image string) e

// CreateContainer creates a container, but does not start it
func (r *PodmanRuntime) CreateContainer(ctx context.Context, cfg *types.NodeConfig) (string, error) {
ctx, err := r.connect(ctx)
if err != nil {
return nil, err
}
sg, err := r.createContainerSpec(ctx, cfg)
if err != nil {
return "", fmt.Errorf("error while trying to create a container spec for node %q: %w", cfg.LongName, err)
Expand Down

0 comments on commit 907286c

Please sign in to comment.