September 2018
Intermediate to advanced
764 pages
20h 6m
English
Ensure that the Elasticsearch container is running and that it has bound its port to our local machine. Then, run our hobnob image using docker run:
$ docker run --env-file ./.env --name hobnob -d -p 8080:8080 hobnob:0.1.0
Note that we are using the --env-file option to pass in our environment variables at runtime instead of build time.
To check that our container is running without errors, check the stdout produced inside the container, which we can conveniently check using docker logs:
$ docker logs hobnobyarn run v1.5.1$ node dist/index.jsHobnob API server listening on port 8080!
If the container's log does not show the preceding success message, go back and repeat the steps closely. You may want to use docker stop hobnob ...
Read now
Unlock full access