documentation/docs/tutorials/isolated-development-environments.md
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
This guide shows you how to set up isolated development environments using the Container Use MCP with goose. With this setup, your development work will be isolated to both git branches and containers, allowing you to experiment freely without affecting your main system state. The Container Use MCP offers powerful ways to do isolated development which are very agent friendly (build on tools like Docker, copy on write filesystems, and more).
The Container Use MCP server provides containerized development environments that integrate seamlessly with goose. This allows you to:
:::info Already Using Devcontainers? If you develop inside Docker containers (like VS Code Remote-Containers), see how you can run extensions in your existing containers. :::
For installation and configuration instructions, see the Container Use Extension tutorial.
Once the extension is enabled in goose, you can:
Simply mention in your conversation with goose that you want to work in an isolated environment:
"I want to experiment with adding a new feature, but I want to do it in an isolated environment so I don't affect my main codebase."
goose will automatically:
"Let me try a completely different approach to this algorithm. Can you set up an isolated environment where I can experiment?"
"I want to try out this new framework, but I don't want to install all its dependencies on my main system."
Docker not running:
docker infoPermission issues:
sudo usermod -aG docker $USERGit issues:
If you encounter issues:
With container-use enabled in goose, you're ready to develop with confidence. Try starting a conversation about a project you've been hesitant to experiment with, and let goose set up a safe, isolated environment for your exploration.
Remember: with isolated environments, there's no such thing as a failed experiment - only learning opportunities that don't affect your main codebase.