Docker on Render


Docker is the preferred application delivery mechanism for an increasing number of applications. Render offers native support for running containerized apps and services at scale, offering features previously only available in complex orchestration tools like Kubernetes but without the associated management complexity and steep learning curve.

Render’s Docker support includes:

All Docker services come with standard Render features like:

Docker vs. Native Language Environments

Render has native support for most popular languages including Node, Python, Elixir, Rust, Go and Ruby. You don’t need to learn Docker or create Dockerfiles if your app can be deployed with a native environment and a build and start command.

You should consider containerizing your application in the following scenarios:

  • You need OS-level packages not included in a native environment. With Docker you have complete control over your base operating system and installed packages.
  • Your application is in a language not yet supported natively on Render, like PHP, Java, or ASP.NET.
  • You need guaranteed reproducible builds. We release regular updates to native environments to improve functionality, security, and performance. While we aim for full backward compatibility, using a Dockerfile is the best way to ensure that your production runtime is always in sync with your local builds.

Docker Builds on Render

Render uses the new BuildKit engine to build your Dockerfiles. BuildKit includes several improvements to build performance and image management.

Run your local builds with DOCKER_BUILDKIT=1 docker build to use BuildKit on your own machine.

Render caches all intermediate layers in your Dockerfile, making subsequent builds significantly faster. Follow these instructions from Docker to further optimize your images and improve build times.

Render builds your Docker image on every push to your repo, storing the image in a private and secure container registry. After building the image, the system creates new containers based on the latest version of your app and starts directing traffic to them as soon as they are healthy. See zero downtime deploys for more details.

Getting started with Docker containers

You can build and deploy your own Dockerfile by simply adding it to your repo and following the regular service creation flow. Render automatically detects Dockerfiles at the root of your repo and suggests a Docker environment for your app during this flow.

We also have templates to install popular open-source applications on Render using Docker:

Infrastructure Components

Blogging and Content Management

Analytics and Business Intelligence

Communication and Collaboration