Skip to content

Agentic apps need three things - models, tools, and code. This workshop goes through each and shows how Docker makes working with all of these easier!

License

Notifications You must be signed in to change notification settings

dockersamples/workshop-agentic-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workshop - Agentic Compose

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!

📋 Workshop outline

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:

  1. 🧠 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?
  2. 🛠️ 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?
  3. 🧑‍💻 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.

Pre-requisites

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+

Getting started

  1. Ensure the Docker Model Runner is running with the following command:

    docker model status
  2. Clone this repository to your machine:

    git clone https://github.com/dockersamples/workshop-agentic-compose.git
  3. Navigate into the directory for the cloned repository:

    cd workshop-agentic-compose
  4. 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.

  5. 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.

Contributing

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.

About

Agentic apps need three things - models, tools, and code. This workshop goes through each and shows how Docker makes working with all of these easier!

Resources

License

Stars

Watchers

Forks