Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster image export #3853

Merged
merged 1 commit into from
Oct 12, 2022
Merged

Faster image export #3853

merged 1 commit into from
Oct 12, 2022

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Oct 12, 2022

Creating the container without a network takes 50 to 80ms less.

Signed-off-by: David Gageot david.gageot@docker.com

@deitch
Copy link
Collaborator

deitch commented Oct 12, 2022

True, we only ever call this to create a tar reader, but it is possible we might want to actually run it. Any reason not to make it a boolean parameter and pass it as false?

@dgageot
Copy link
Contributor Author

dgageot commented Oct 12, 2022

@deitch No reason. I saw it was used only in that case. I can change that

Creating the container without a network takes
50 to 80ms less.

Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot
Copy link
Contributor Author

dgageot commented Oct 12, 2022

@deitch Should be better now. Next time we have to add a flag to this function, it'll probably better to directly pass a container.Config.

@deitch deitch merged commit 61a07e2 into linuxkit:master Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants