AutoGPT
AutoGPT copied to clipboard
docker --install-plugin-deps
how do you install the plugins on docker instance? Thanks
Hi @rcpilotp51,
To install and add plugins to your AutoGPT instance running in Docker, you can follow the steps below:
-
Download and extract the Auto-GPT-Plugins repository to your local machine.
-
Update your
docker-compose.ymlfile to include the appropriate volume mounts. Your updateddocker-compose.ymlshould look like this:
version: "3.9" services: auto-gpt: image: significantgravitas/auto-gpt:0.2.2 depends_on: - redis env_file: - .env environment: MEMORY_BACKEND: ${MEMORY_BACKEND:-redis} REDIS_HOST: ${REDIS_HOST:-redis} volumes: - ./:/app - ./data:/app/data - ./plugins:/app/plugins profiles: ["exclude-from-up"] redis: image: "redis/redis-stack-server:latest"
In the volumes section of the auto-gpt service, we've added the following lines:
- ./data:/app/data
- ./plugins:/app/plugins
These lines mount the data and plugins directories from your local machine to the container at /app/data and /app/plugins, respectively.
- Run the following commands to update your Docker containers with the new configuration and mount the volumes correctly:
docker-compose down docker-compose up -d
- Copy the extracted plugins to the /app/plugins directory inside the container. You can do this with the following command, replacing CONTAINER_ID with the ID of your AutoGPT container and /path/to/your/extracted/plugins with the path where you extracted the Auto-GPT-Plugins repository:
docker cp /path/to/your/extracted/plugins CONTAINER_ID:/app/plugins
After completing these steps, the plugins should be properly installed and added to your AutoGPT instance running in Docker. If you have any further questions or need assistance, feel free to ask.
Transferring issue to main repo
How did you install the requirements for the plugins? I tried to use the Instagram plugin but couldn't install the instant requirement
The correct way to run it in docker is like this: docker-compose run --rm auto-gpt --install-plugin-deps. Make sure you have the plugins already configured locally and you update docker-compose.yml to have : volumes:
- ./:/app
- ./data:/app/data
- ./plugins:/app/plugins
Using --install-plugin-deps does absolutely nothing, either on stable-0.3.1 or master branches. AutoGPT fails to find dependencies when using plugins. I was attempting to use the Auto-Web-Interaction-Plugin, and while AutoGPT does find it:
Plugins found: 1
--------------------
Auto-Web-Interaction-Plugin: 0.1.0 - Auto-GPT Web Interaction Plugin: Interact with websites.
It nonetheless is unable to continue, because that plugin depends on Playwright, and --install-plugin-deps does not have any affect on the docker environment. It's as if it just silently fails.
@VisionaryMind make sure to add the volumes listed above, ensure your docker image is up to date, and that your local plugins are up-to-date. Run the command locally and see if you can use the plugins, if you can, you should be able to run the docker-compose run --rm auto-gpt --install-plugin-deps in docker.
This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.
This issue was closed automatically because it has been stale for 10 days with no activity.