Docker support is currently experimental. Running Open Interpreter inside of a Docker container may not function as you expect. Let us know on Discord if you encounter errors or have suggestions to improve Docker support. We are working on an official integration for Docker in the coming weeks. For now, you can use Open Interpreter in a sandboxed Docker container environment using the following steps:Documentation Index
Fetch the complete documentation index at: https://docs.openinterpreter.com/llms.txt
Use this file to discover all available pages before exploring further.
- If you do not have Docker Desktop installed, install it before proceeding.
-
Create a new directory and add a file named
Dockerfilein it with the following contents:
- Run the following commands in the same directory to start Open Interpreter.
Mounting Volumes
This is how you let it access some files, by telling it a folder (a volume) it will be able to see / manipulate. To mount a volume, you can use the-v flag followed by the path to the directory on your host machine, a colon, and then the path where you want to mount the directory in the container.
/path/on/your/host with the path to the directory on your host machine that you want to mount, and replace /path/in/the/container with the path in the Docker container where you want to mount the directory.
Here’s a simple example:
$(pwd) is your current directory, and it is mounted to a /files directory in the Docker container (this creates that folder too).
Flags
To add flags to the command, just append them afterinterpreter. For example, to run the interpreter with custom instructions, run the following command:
--config will not work, because it cannot open the config file in the container. If you want to use a config file other than the default, you can create a config.yml file inside of the same directory, add your custom config, and then run the following command:

