mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-31 11:54:30 +01:00
- Create a unique container name based on agent ID - Check if the container with the name exists, otherwise create a new container - If the container is not running, start it; otherwise, restart it - Execute the code in the container - Return the output of the code execution This change enables reusing the same container for consecutive code execution commands, allowing for iterative changes to the execution environment. Note: This change also includes handling the case where the Docker image is not found locally by pulling it from Docker Hub. The image used in this case is "python:3-alpine".