Dolt in Docker Tutorial
Dolt in Docker Tutorial
Docker is a container runtime environment that some developers use to standardize dependency management. A "Dockerized" app has three lifecycle stages:
-
Dockerfile
: static dependency definitions. -
Docker image: a packaged executable.
-
Docker container: stateless running instance of a docker image.
In this tutorial, we will show how to run Dolt using Docker by building and running a Dolt Docker image, and as a bonus discuss two Docker features that are worth knowing as a database user:
-
Docker volumes: a way to persist data alongside stateless containers.
-
Docker entrypoints: a way to automatically launch a Dolt SQL server container with small modifications to a
Dockerfile
.
Follow along with the instructions from our Docker docs, and reference the Docker documentation for features not discussed in this tutorial.
Let us know what you think! We are always available on our Discord, and sign up for our mailing list for weekly updates.