docker build -t <IMAGE_NAME>:<IMAGE_TAG> .
docker run -p <HOST_PORT>:<CONTAINER_PORT> --name <CONTAINER_NAME> -d <IMAGE_NAME>:<IMAGE_TAG>
docker tag <IMAGE_NAME>:<IMAGE_TAG> <REGISTRY>/<IMAGE_NAME>:<IMAGE_TAG>
docker push <REGISTRY>/<IMAGE_NAME>:<IMAGE_TAG>
docker stop <CONTAINER_NAME>;
docker rm <CONTAINER_NAME>;
Add this parameter when running docker run:
-e "JAVA_TOOL_OPTIONS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000" -p 8000:8000