Skip to content
Lior Kesos edited this page Feb 29, 2016 · 6 revisions
  1. Download docker prerequisites...
  2. Install default machine for daemon to run

docker-machine create --driver virtualbox default

1. To reload shell with docker env   

eval $(docker-machine env default)

1. To run docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d910391b401a icapi_api "npm start" 24 minutes ago Up 13 minutes 0.0.0.0:3003->3003/tcp icapi_api_1 4ea6a422ce31 mongo "/entrypoint.sh mongo" 25 minutes ago Up 25 minutes 0.0.0.0:27017->27017/tcp icapi_db_1 ea45a81f5112 elasticsearch "/docker-entrypoint.s" About an hour ago Up About an hour 9200/tcp, 9300/tcp icapi_search_1


1. To access instance by bash  

docker exec -it $CONTAINER_ID bash


1. To build the containers on the virtualbox (read Dockerfile and execute contents)  

docker-compose build

     
1. To run the containers (

docker-compose start db docker-compose start elastic docker-compose up api

Clone this wiki locally