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