Skip to content

Conversation

@thaJeztah
Copy link
Collaborator

@thaJeztah thaJeztah commented Aug 19, 2022

Some simplification of the logic in this function;

  • combine the two "if daemon.UsesSnapshotter()" branches
  • newContainerOpts was only used if a container had to be created, so skip creating options (and look up the image) if the container was found.

@thaJeztah thaJeztah force-pushed the rumpl_container_start_cleanup branch from 36e5a40 to e1906d6 Compare August 22, 2022 10:18
- combine the two "if daemon.UsesSnapshotter()" branches
- newContainerOpts was only used if a container had to be created, so skip
  creating options (and look up the image) if the container was found.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the rumpl_container_start_cleanup branch from e1906d6 to ce5b73f Compare August 24, 2022 07:19
@thaJeztah thaJeztah marked this pull request as ready for review August 24, 2022 07:19
@thaJeztah
Copy link
Collaborator Author

CI is still happy, so let me get this one in 👍

@thaJeztah thaJeztah merged commit 78fc344 into rumpl:c8d Aug 24, 2022
@thaJeztah thaJeztah deleted the rumpl_container_start_cleanup branch August 24, 2022 14:00
@thaJeztah
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants