frdel / agent-zero

Agent Zero AI framework
Other
3.86k stars 865 forks source link

Docker seems to map wrong Work_Dir #119

Closed SGATX closed 4 days ago

SGATX commented 6 days ago

I have multiple pulls of the agent-zero code and I had a problem finding files in the work_dir. What I found, thanks to a comment on Discord, is that if you have multiple code pulls Docker maps the work_dir from your first pull even if you are executing AZ from a second pull. I can only guess it's related to an environment variable? Haven't found the issue yet.

bpawnzZ commented 5 days ago

If it is having issues mapping just set it via portainer manually and re-deploy container

6rz6 commented 4 days ago

did you check the Init file?

SGATX commented 4 days ago

I think the problem was an old container, with the old mapping, that was being reused. When I removed it and reran agent-zero from the new tree it mapped work-dir correctly. I don't know Docker well enough to know why it was reusing the old container. (and why it wasn't removed when agent-zero shut down) But I don't think it's an agent-zero issue.