Vagrant comes with support out of the box for using Docker as a provider. This allows for your development environments to be backed by Docker containers rather than virtual machines providing a good workflow for developing Dockerfiles.
- Mac OSX
Before you being, ensure you have the following in your system as well.
To run the project:
$ git clone <repo>
$ cd docker_nodejs_app
$ vagrant up
Go to http://localhost:8080
to see the output
You will need to create docker hub account before you can do this.
$ cd docker_nodejs_app
$ docker build -t your-docker-hub-username/repo-name:tag-id .
$ docker run -p your-docker-hub-username/repo-name:tag-id