Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 1.47 KB

README.md

File metadata and controls

60 lines (46 loc) · 1.47 KB

General Docker commands

Build Image

docker build -t <IMAGE_NAME>:<IMAGE_TAG> .

Run Container

docker run -p <HOST_PORT>:<CONTAINER_PORT> --name <CONTAINER_NAME> -d <IMAGE_NAME>:<IMAGE_TAG>

Tag Image

docker tag <IMAGE_NAME>:<IMAGE_TAG> <REGISTRY>/<IMAGE_NAME>:<IMAGE_TAG>

Push Image

docker push <REGISTRY>/<IMAGE_NAME>:<IMAGE_TAG>

Stop Container

docker stop <CONTAINER_NAME>;

Remove Container

docker rm <CONTAINER_NAME>;

Java Remote Debugging:

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