This guide is designed to get you completely set up with Docker using a Doppler base image. We will cover everything from constructing your docker images, high availability, building your images with the Doppler credentials, and debugging locally.
When constructing your Dockerfile, you can use the official Doppler base image. The base images come in a couple of flavors depending on what other dependencies you have. You can also use a different base image.
Alpine base image (
The Doppler CLI follows semantic versioning. All images have tags for their major, minor, and patch versions. We recommend locking to a major version to prevent breaking changes.
Updates you'll receive
Patch (not recommended)
Let's see a full example of a Dockerfile. This Dockerfile will fetch your latest secrets and then run your command with the secrets injected as environment variables.
FROM dopplerhq/cli:3 # Fetch secrets and print them using "printenv" command ENTRYPOINT ["doppler", "run", "--", "printenv"]
Now let's build the image!
docker build . -t doppler-test
Now you know how to use Doppler's base Docker images!
Updated 10 months ago