Plugin configuration

The plugin uses the configuration from the <run> sub-element of the <configuration> in the pom.xml file. The list of the most important configuration elements is as follows:

cmd

Command which should be executed at the end of the container's startup. If not given, the image's default command is used.

entrypoint

Entry point for the container.

log

Log configuration for whether and how log messages from the running containers should be printed. This can also configure the log driver to use.

memory

Memory limit in bytes

namingStrategy

Naming strategy for how the container name is created:

  • none: Uses randomly assigned names from Docker (default)
  • alias : Uses the alias specified in the image configuration. ...

Get Docker and Kubernetes for Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.