# Docker run configurations

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/ruby/2026.3/llms.txt).

Use Docker run configurations to build Docker images and run containers from RubyMine. For example, you can run a container with the database used by your application backend. Or you can build an image with your application binary, dependencies, and any other necessary files. This is called "dockerizing" an application.

Procedure: Create a Docker run configuration

1. In the main menu, go to `Run | Edit Configurations`.

2. In the Run/Debug Configurations dialog, click ![The Add New Configuration button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg), expand the Docker group, and select the desired type of run configuration.

RubyMine provides the following types of Docker run configurations:

Docker Image
: Created automatically when you [run a container from an existing image](docker-containers.html#run_image). For more information, refer to [Docker Image run configuration](docker-image-run-configuration.html).

Dockerfile
: Created automatically when you [run a container from a Dockerfile](docker-containers.html#run_image_dockerfile). For more information, refer to [Dockerfile run configuration](dockerfile-run-configuration.html).

Docker Compose
: Created automatically when you [run a multi-container Docker application](docker-compose.html) from a [Docker Compose file](https://docs.docker.com/compose/overview/). For more information, refer to [Docker compose run configuration](docker-compose-run-configuration.html).

## Run Docker containers before another run configuration

You can set any Docker run configuration as a [Before launch](null) task for another run configuration. For example, if your application relies on a running database, you can automatically run a Docker container with the database every time you run your application from sources.

Procedure:

1. In the run configuration dialog, click ![the Add button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg) in the Before launch group and select Run Another Configuration.

![Selecting Run Another Configuration](https://resources.jetbrains.com/help/img/idea/2026.3/rm_run_another_configuration.png)

2. From the popup, select the required Docker run configuration.

![Selecting a Docker configuration to run before launch](https://resources.jetbrains.com/help/img/idea/2026.3/rm_docker_before_launch.png)

