curl https://start.spring.io/starter.zip -d dependencies=web \
-d type=maven-project \
-d groupId=com.github.javamultiplex \
-d artifactId=hello-world-app \
-d name=hello-world-app \
-o hello-world-app.zip
mvn spring-boot:run
mvn spring-boot:build-image
- Build Image -
docker build -t hello-world
. - Tag Image -
docker tag hello-world:latest javamultiplex/hello-world:latest
- Push Image -
docker push javamultiplex/hello-world:latest
- Pull Image -
docker pull javamultiplex/hello-world:latest
- Run Image -
docker run -d -p8080:8080 javamultiplex/hello-world:latest