# Docker run targets

Docker is great for running and debugging your application, because you can replicate any environment in a container. For example, the reporter of an issue may provide you with a specific Docker image where they are able to reproduce the problem. To run or debug your application in a Docker container, you can use [Run targets](run-targets.html).

Procedure: Create a Docker run target

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) to open settings and then select `Build, Execution, Deployment | Run Targets`.

2. Click ![The Add Target On button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.add.svg) and select Docker.

3. Configure and create the Docker target as described in [Run Targets: Docker](run-targets.html#docker).

![Docker run target](https://resources.jetbrains.com.cn/help/img/idea/2026.2/docker_run_targets.png)

Procedure: Run or debug your application on a Docker run target

* Create a new [run or debug configuration](run-debug-configuration.html) for your application or configure an existing one to use the Docker run target.

![Java application with Docker run target](https://resources.jetbrains.com.cn/help/img/idea/2026.2/application_run_configuration_with_docker_run_target.png)

For a specific example, refer to [Run and debug a Java application with Docker](running-a-java-app-in-a-container.html).

## See also

### Related

[Run targets: Docker](run-targets.html#docker)

### Tutorials

[Run and debug a Java application with Docker](running-a-java-app-in-a-container.html)

