Introduction to Docker and Containers
Published by Pearson
Hands-On Containerization for Python, Machine Learning, and Generative AI Workflows
- Master Docker fundamentals and workflows: Understand containerization, Docker architecture, and how to build, run, and manage containers and images in real-world scenarios.
- Dockerize applications end-to-end: Learn both interactive and Docker file-based approaches to package and deploy applications efficiently using best practices.
- Apply Docker to AI and machine learning: Containerize ML environments and generative AI applications, enabling reproducible, scalable, and production-ready AI systems.
This hands-on course introduces Docker and containerization as essential tools for modern software development, with a clear focus on their growing importance in machine learning and artificial intelligence workflows. Participants will learn how containers enable applications to run consistently across different environments, solving common challenges related to dependency management, reproducibility, and deployment. The course begins with core concepts, including how Docker differs from traditional virtual machines and why it has become a foundational technology in DevOps, cloud computing, and automation.
As the course progresses, learners will gain practical experience working directly with Docker. They will run and manage containers, explore Docker Hub, and learn how to build and customize their own images. Through interactive exercises, participants will dockerize a simple Python application and understand the lifecycle of containers and images. The course then transitions to a more professional approach, introducing Dockerfiles, best practices for building efficient images, and techniques for debugging and inspecting containers in real-world scenarios.
In the final part of the course, participants will apply Docker to machine learning and generative AI use cases. They will learn how to package ML environments, run models using containers, and ensure reproducibility of experiments. The course also introduces how Docker can be used to deploy AI applications, including API-based large language model workflows and simple generative AI systems. By the end of the session, learners will have a clear understanding of how Docker supports the development and deployment of modern AI applications, and will be well prepared to extend these skills to more advanced, production-level systems.
What you’ll learn and how you can apply it
- Understand and use Docker confidently: Learn core concepts and commands to run, manage, and troubleshoot containers in real-world environments
- Build and deploy containerized applications: Dockerize Python applications using both interactive methods and Dockerfiles, and run them consistently across systems
- Manage data, networking, and environments: Apply volumes, port mapping, and networking to create fully functional, connected applications
- Create reproducible machine learning workflows: Package ML environments and models to ensure consistent results across development, testing, and production
- Deploy AI and generative AI applications: Containerize and run LLM-based applications and APIs, enabling scalable and production-ready AI solutions
This live event is for you because...
- You are a software developer or engineer looking to adopt modern DevOps and containerization practices to build and deploy applications more efficiently
- You are a data scientist, ML engineer, or AI practitioner who needs reproducible environments and a reliable way to package and deploy models and AI applications
- You are transitioning into AI, cloud, or backend development roles, and want a practical, beginner-friendly introduction to Docker with real-world use cases
- You have basic programming experience (e.g., Python) but are new to Docker, and want hands-on guidance to move from fundamentals to applying Docker in machine learning and generative AI workflows
Prerequisites
- Familiarity with command-line (e.g. terminal)
- Familiarity with software installation
- Familiarity with Mac OS or Ubuntu Linux (recommended, not required)
Course Set-up
If your course requires attendees to have specific applications or setup available on their machines, list detailed instructions here. Provide GitHub link, if applicable (do not use Google Drive or personal website to host resource materials for attendees).
- Ubuntu Linux is highly recommended, otherwise Mac OS or Windows are fine
- Speedy internet connection
Recommended Preparation
- Watch: Docker Containers, Third Edition by Christopher Negus
- Read: Docker Containers: Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic by Christopher Negus
Recommended Follow-up
- Watch: Introduction to Docker and Containers (Video Course) by Noureddin Sadawi
Schedule
The time frames are only estimates and may vary according to how the class is progressing.
Segment 1: Introduction & Docker Fundamentals (60 minutes)
- What is Docker? What is Containerisation?
- Containers vs Virtual Machines
- Why Docker matters (DevOps, Cloud, Automation)
- Why Docker is critical for Machine Learning and Artificial Intelligence (reproducibility, dependency isolation/resolution)
- Docker architecture (images, containers, registries)
- Installing Docker
- Basic Docker commands: docker run, docker ps, docker images, docker stop
- Understanding Docker Hub and images
- Hands-On Lab:
- Run your first container (Ubuntu / Nginx)
- Docker Hub workflow: Search -> Pull -> Run -> Push (optional if time permits)
Q&A (10 minutes)
Break (10 minutes)
Segment 2: Running Containers & Dockerising Applications Interactively (60 minutes)
- Working with containers in depth
- Difference between images vs containers (clarify lifecycle)
- Volumes and data persistence
- Docker networking basics
- Interactive Dockerisation (without Dockerfile first)
- Using CLI to build environments
- Committing containers into images (docker commit)
- Introduction to building custom images
- Hands-On Lab:
- Dockerise a simple Python application (interactive approach)
- Run pre-built dockerised applications
- (Optional stretch) Modify and rebuild an image
Q&A (10 minutes)
Break (10 minutes)
Segment 3: Dockerising Applications Professionally (60 minutes)
A. Dockerfile & Production Practices:
- Dockerfile overview and key instructions (e.g. FROM, RUN, COPY, ADD, CMD, ENTRYPOINT)
- Building images using Dockerfiles, and debugging builds
- Image optimisation basics (light touch: layers, caching)
- Inspecting images with docker history, docker inspect B. Docker for Machine Learning:
- Packaging ML environments (requirements.txt, dependencies)
- Running ML scripts inside containers
- Reproducibility in experiments C. Docker for Generative AI (Intro Level):
- Running API-based LLM apps inside Docker
- Example architecture:
- Python app + API (OpenAI-style)
- Brief mention of local models (Ollama or Hugging Face)
- CPU vs GPU containers (conceptual only) D. Capstone Projects (Putting Everything Together):
- Dockerising a Python ML application (end-to-end)
- Running a simple Generative AI app inside Docker
Q&A (15 minutes)
Course wrap-up and next steps (10 minutes)
Your Instructor
Noureddin Sadawi
Dr. Noureddin Sadawi is a consultant in machine learning and data science. He is also a lecturer at the University of Oxford and the University of London, UK. He is experienced in various areas involving data manipulation and analysis. He received his PhD from the University of Birmingham, United Kingdom. During his PhD he developed a technique to extract precise information from bitmap images of chemical structure diagrams. He developed a tool called MolRec and used it to participate in evaluation contests at two international events - TREC2011 and CLEF2012 - and won both of them. Dr Sadawi is an avid scientific software researcher and developer who has a passion for learning and teaching new technologies. He has been involved in several projects spanning a variety of fields such as bioinformatics, drug discovery, omics data analysis and much more. He has taught at multiple universities in the UK and has worked as a software engineer in different roles.
Skills covered
- Docker
- Microservices
- Cloud Native
- Docker Swarm