Skip to content
Mark Papadakis edited this page Aug 13, 2016 · 5 revisions

There is a Docker image on Docker Hub, so you can run Tank directly like so:

$> mkdir -p TankTopics/events/0 TankTopics/orders/0
$> docker run -v TankTopics:/data -p 11011:11011 phaistos/tank

This will download the image from Docker Hub, if it’s not locally available already, and run the tank service. You can access it at localIPAddress:11011.

You can use the Client library to build apps to interface with it, and you can also use tank-cli included in the image like so:

$> docker run -ti phaistos/tank tank-cli -b localIPAddress:11011 -t events set first second "third message"
$> docker run -ti phaistos/tank tank-cli -b localIPAddress:11011 -t events get 0

where localIPAddress is your local IP address. If you can run docker with —net=host, you can replace localIPAddress with 127.0.0.1

Please note that Tank is under development, so you may want to update your image periodically to take advantage of new features and any bug fixes:

$> docker pull phaistos/tank

The image is updated automatically by Docker Hub whenever a new commit is merged into the repository.

Clone this wiki locally