Skip to content

Commit f594333

Browse files
Update FAQ.md, elaborate on how to customise docker image and pick 'python:3' to solve typical errors (#269)
* Update FAQ.md * Update website/docs/FAQ.md Co-authored-by: Qingyun Wu <[email protected]> * Update website/docs/FAQ.md Co-authored-by: Qingyun Wu <[email protected]> * Update website/docs/FAQ.md Co-authored-by: Qingyun Wu <[email protected]> --------- Co-authored-by: Qingyun Wu <[email protected]>
1 parent f2d7553 commit f594333

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

website/docs/FAQ.md

+17
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,20 @@ We strongly recommend using docker to execute code. There are two ways to use do
141141

142142
1. Run autogen in a docker container. For example, when developing in GitHub codespace, the autogen runs in a docker container.
143143
2. Run autogen outside of a docker, while perform code execution with a docker container. For this option, make sure the python package `docker` is installed. When it is not installed and `use_docker` is omitted in `code_execution_config`, the code will be executed locally (this behavior is subject to change in future).
144+
145+
### Enable Python 3 docker image
146+
147+
You might want to override the default docker image used for code execution. To do that set `use_docker` key of `code_execution_config` property to the name of the image. E.g.:
148+
```python
149+
user_proxy = autogen.UserProxyAgent(
150+
name="agent",
151+
human_input_mode="TERMINATE",
152+
max_consecutive_auto_reply=10,
153+
code_execution_config={"work_dir":"_output", "use_docker":"python:3"},
154+
llm_config=llm_config,
155+
system_message=""""Reply TERMINATE if the task has been solved at full satisfaction.
156+
Otherwise, reply CONTINUE, or the reason why the task is not solved yet."""
157+
)
158+
```
159+
160+
If you have problems with agents running `pip install` or get errors similar to `Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')`, you can choose **'python:3'** as image as shown in the code example above and that should solve the problem.

0 commit comments

Comments
 (0)