Run Target support via Docker

Run your application or tests in Docker Container with ease.

For specific run/debug configurations, you can execute your code in different environments, such as the cloud or a Docker container, directly from GoLand.

This feature lets you quickly test your changes in the actual environment the app is designed for.

If a target already exists, select it from the Run on field in a Run Configuration, then run that configuration.

If no targets exist, then click on Manage Targets.

Then, click + (macOS) / Plus (Windows/Linux) and select in which environment you want to run the application or test.

After the IDE introspects that environment, click on Next, confirm the environment settings, and click OK.

Then select the newly created target in the Run on field.

Configure any additional options, and, finally, run the configuration as with any other.

If you want to compile your sources in a remote environment, then select the Build on remote environment option from the Run Configuration settings.

If you choose to compile on the local machine instead, you don't need to worry about ensuring the dependencies are available in the remote environment.


Related Resources

Stop a Remote Process After Debugging It
Stop a Remote Process After Debugging It
Clean-up processes after interacting with them in remote debugging scenarios.
Code completion in Evaluate Expression, Watches or Conditional Breakpoints
Code completion in Evaluate Expression, Watches or Conditional Breakpoints
The debugger also has extensive code completion capabilities.
Inline Watches in Debugger
Inline Watches in Debugger
Keep your eyes on the code at all times.