SE Hub
Deploying with Docker

Naming Conventions

How to name Docker images, volumes, and containers.

Naming Docker Image's Name and Tag

Use snake_case to name a Docker image name:tag. The name should match the project's repository name, while the tag name should match the branch name.

Below is an example of how to name a docker image for internal-v2 with branch dev:

internal_v2:dev

Naming Docker Volume

Use snake_case to name a Docker volume. The volume name should match the project's repository name and have a suffix that specifies the usage of the volume.

Below is an example of how to name a docker volume for internal-v2 that is used as storage.

internal_v2_storage

Naming Container Name

Use snake_case to name a Docker container. The container name should represent the project that is being deployed.

Below is an example of how to name a docker container for internal-v2 with branch dev:

internal_v2_dev

On this page