C++ language-specific guide


The C++ getting started guide teaches you how to create a containerized C++ application using Docker. In this guide, you'll learn how to:

Acknowledgment

Docker would like to thank Pradumna Saraf and Mohammad-Ali A'râbi for their contribution to this guide.

  • Containerize and run a C++ application using a multi-stage Docker build
  • Build and run a C++ application using Docker Compose
  • Set up a local environment to develop a C++ application using containers
  • Configure a CI/CD pipeline for a containerized C++ application using GitHub Actions
  • Deploy your containerized application locally to Kubernetes to test and debug your deployment
  • Use BuildKit to generate SBOM attestations during the build process

After completing the C++ getting started modules, you should be able to containerize your own C++ application based on the examples and instructions provided in this guide.

Start by containerizing an existing C++ application.

Modules

  1. Containerize your app using a multi-stage build

    Learn how to create a multi-stage build for a C++ application.

  2. Build and run a C++ application using Docker Compose

    Learn how to use Docker Compose to build and run a C++ application.

  3. Develop your app

    Learn how to develop your C++ application locally.

  4. Configure CI/CD

    Learn how to configure CI/CD using GitHub Actions for your C++ application.

  5. Test your deployment

    Learn how to develop locally using Kubernetes

  6. Supply-chain security

    Learn how to extract SBOMs from C++ Docker images.