Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

This repository is supposed to link w/ redis-container ( like https://registry.hub.docker.com/u/yoheimuta/docker-redis/).

// run redis container

sudo docker run -d -p 6379 --name redis yoheimuta/redis

// run sinatra app container linked w/ redis one

sudo docker run -d -p 4567 --name webapp --link redis:db -t -i -v $PWD/webapp:/opt/webapp yoheimuta/sinatra

// you can set an arbitrary json data (port is tentative)

curl -i -H 'Accept: application/json' -d 'name=yoheimuta&status=sleep' http://localhost:49166/json

// you can get previous set json data (port is tentative)

curl -i http://localhost:49166/json
</pre>

Docker Pull Command
Owner
yoheimuta
Source Repository

Comments (0)