# Running Strapi in a Docker container
✋ CAUTION
Strapi does not build any official container images. The following instructions are provided as a courtesy to the community. If you have any questions, please reach out to the community on Discord (opens new window).
The following documentation will guide you through the process of building a custom Docker (opens new window) container with an existing Strapi project.
Docker is an open platform that allows to develop, ship and run applications by using containers (i.e. packages containing all the parts an application needs to function, such as libraries and dependencies). Containers are isolated from each other and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.
# Prerequisites
To follow the instructions below, the following will be needed:
- Docker (opens new window) installed on your machine
- Supported version of Node.js
- An existing Strapi v4 project, or a new one created with Strapi Quick Start
- (Optional) Yarn (opens new window) installed on your machine
- (Optional) Docker Compose (opens new window) installed on your machine
# Development and/or Staging environments
# Dockerfile
# Building the development container
# (Optional) Docker Compose
# Production Environments
# Dockerfile
# Building the production container
# (Optional) Publishing the container to a registry
# (Optional) Deploying to various cloud providers
# Community Tools
# @strapi-community/dockerize
# Docker FAQ
# Why doesn't Strapi provide official Docker images?
# Why do we have different Dockerfiles for development and production?
← CLI Project structure →