Try   HackMD

指令:
mvn spring-boot:build-image
image 名稱參數:
-Dspring-boot.build-image.imageName=myrepo/myimage

Reference

Build a Docker image using Maven and Spring Boot