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.
Press CtrlAlt0S to open settings and then select Build, Execution, Deployment | Run Targets.
Click
and select Docker.
Configure and create the Docker target as described in Run Targets: Docker.
![Docker run target Docker run target](https://resources.jetbrains.com/help/img/idea/2024.3/docker_run_targets.png)
Create a new run or debug configuration for your application or configure an existing one to use the Docker run target.
![Java application with Docker run target Java application with Docker run target](https://resources.jetbrains.com/help/img/idea/2024.3/application_run_configuration_with_docker_run_target.png)
For a specific example, refer to Run and debug a Java application with Docker.
Thanks for your feedback!
Was this page helpful?