Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
iconfalse
titledocker run -d -p 6379:6379 --name redis redis


## Redis Container 실행

Code Block
languagebash
themeMidnight
linenumberstrue
SanseMac:reactive-link-shortener-sample-app sanse$ docker run -d -p 6379:6379 --name redis redis
Unable to find image 'redis:latest' locally
latest: Pulling from library/redis
f5d23c7fed46: Already exists 
a4a5c04dafc1: Already exists 
605bafc84bc9: Already exists 
f07a4e35cd96: Already exists 
17944e5e3eb7: Already exists 
6f875a8605e0: Already exists 
Digest: sha256:8888f6cd2509062a377e903e17777b4a6d59c92769f6807f034fa345da9eebcf
Status: Downloaded newer image for redis:latest
3a76b32933719cd69fde6a710c1a7b897eb92d42ebcae0ef20dba675419acafb
SanseMac:reactive-link-shortener-sample-app sanse$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
3a76b3293371        redis               "docker-entrypoint.s..."   19 seconds ago      Up 17 seconds       0.0.0.0:6379->6379/tcp   redis
SanseMac:reactive-link-shortener-sample-app sanse$ 
 

...

Info
iconfalse
titlecurl -XPOST http://localhost:8080/link -H "Content-Type: application/json" -d '{"link":"http://wiki.iisanse.com"}'


## 어플리케이션 실행

Code Block
SanseMac:reactive-link-shortener-sample-app sanse$ curl -XPOST http://localhost:8080/link -H "Content-Type: application/json" -d '{"link":"http://wiki.iisanse.com"}'
{"shortenedLink":"http://localhost:8080/mrfTuM"}SanseMac:reactive-link-shortener-sample-app sanse$ 

...