This workshop is designed to get you up and going with building agentic applications with Compose. This workshop assumes no familiarity with the GenAI stack and guides you through everything you need to know to get up and going!
Agentic applications need three things - models, tools, and code that glues them together.
This workshop will walk through each of these topics and answer the following questions:
- 🧠 Models
- What are models? How do we interact with them?
- What is the [Docker Model Runner](https://docs.docker.com/ai/model-runner/?
- How do I configure the Docker Model Runner in Compose?
- How do I write code that connects to the Docker Model Runner?
- 🛠️ Tools
- What are tools? How do they work?
- How does MCP (Model Context Protocol) fit in?
- What is the Docker MCP Gateway?
- How do I start a MCP Gateway in Compose?
- How do I connect to the MCP Gateway in code?
- 🧑💻 Code
- What are agentic frameworks?
- What frameworks can use the MCP Gateway and Model Runner?
By the end, you'll have gained experience using the Docker Model Runner and MCP Gateway in Compose to build a simple agentic application.
This workshop utilizes the latest features of Docker.
- Easiest approach: 🐳 Install Docker Desktop 4.43.1+
- Manual approach: If you can't use Docker Desktop, you will need Docker Engine 28.3+, Docker Compose 2.38.1+, and Docker Model Runner 0.1.32+
-
Ensure the Docker Model Runner is running with the following command:
docker model status
-
Clone this repository to your machine:
git clone https://github.com/dockersamples/workshop-agentic-compose.git
-
Navigate into the directory for the cloned repository:
cd workshop-agentic-compose
-
Use Docker Compose to start the workshop environment:
docker compose up
Note: this may take a while to download all of the required images and model. The model is about 2.9GB.
-
Once everything is done, open the bundled VS Code editor by going to http://localhost:8085. When prompted for a password, enter password as the password.
Important
When asked to run commands in the workshop, you will use the terminal inside this VS Code environment.
This workshop is being maintained by the Docker team. If you find typos or issues, feel free to submit a PR or open an issue.
Note that we may not accept submissions that expand the scope of the workshop. If you have ideas though, feel free to start a discussion.