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

Optimize Docker usage by enabling container reuse #2444

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akoumany
Copy link
Collaborator

Why are these changes needed?

These changes aim to enhance the efficiency of the DockerCommandLineCodeExecutor by allowing it to reuse existing Docker containers instead of starting a new one for each code execution.

This approach not only speeds up the code execution process by reducing the overhead associated with container setup and teardown but also aligns with sustainable resource usage practices.

Although these changes do not fully resolve #741, they incorporate the suggestion from bbence84 on the potential performance improvements from reusing containers.

Related issue number

Partially addresses #741 and somewhat related to #929

Checks

@akoumany
Copy link
Collaborator Author

@microsoft-github-policy-service agree

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.

Docker based code execution slow - reuse container / be able to specify requirements.txt up front
1 participant