$ docker run -i -t -d -p 8080:8080 --hostname spring-boot-rest-first --name spring-boot-rest-first jinhokwon/spring-boot-rest-first:v1.00.00
$ curl -s -XGET http://localhost:8080 | jq
{
"result": "first",
"headers": {
"host": "localhost:8080",
"user-agent": "curl/7.68.0",
"accept": "*/*"
},
"hostname": "spring-boot-rest-first",
"address": "172.17.0.2",
"version": "v1.00.00"
}
$ docker stop spring-boot-rest-first
spring-boot-rest-first
$ docker rm spring-boot-rest-first
spring-boot-rest-first
$ docker run -i -t -d -p 8080:8080 --hostname spring-boot-rest-first --name spring-boot-rest-first jinhokwon/spring-boot-rest-first:v1.00.01
$ curl -s -XGET http://localhost:8080 | jq
{
"result": "first",
"headers": {
"host": "localhost:8080",
"user-agent": "curl/7.68.0",
"accept": "*/*"
},
"hostname": "spring-boot-rest-first",
"address": "172.17.0.2",
"version": "v1.00.01"
}
$ docker stop spring-boot-rest-first
spring-boot-rest-first
$ docker rm spring-boot-rest-first
spring-boot-rest-first
Content type
Image
Digest
Size
85.6 MB
Last updated
almost 7 years ago
docker pull jinhokwon/spring-boot-rest-first