Skip to content

Instantly share code, notes, and snippets.

@joseluistorres
Created March 6, 2017 22:23
Show Gist options
  • Save joseluistorres/4065b00e8da3777c3fb7703aea0c3f0c to your computer and use it in GitHub Desktop.
Save joseluistorres/4065b00e8da3777c3fb7703aea0c3f0c to your computer and use it in GitHub Desktop.
Docker for Go and RethinkDB
# Running rethinkdb from docker
docker run --name whatever-chido-name -v "$PWD:/data" -d rethinkdb
# Build the docker image with the go app
docker build -t compa .
# This will start the previous container and will link
# the two containers to communicate from each other
docker run --name mi-compa-running -p 8000:8000 --link elated_bassi -d compa
docker network ls
docker newwork inspec CONTAINER-ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment