jbt / docker

Documentation generator
http://jbt.github.com/docker
MIT License
234 stars 56 forks source link

Renamed docker binary to mitigate conflict with docker CLI #97

Closed DinkDonk closed 8 years ago

reiner-dolp commented 8 years ago

If you are using docker.js with npm you can get around this issue by executing docker through package.json scripts:

  1. Install docker.js locally in your project, e.g. as dev dependency.
  2. Run docker.js as a npm script: npm run generate-docs

Minimal package.json example:

{
    "devDependencies": {
        "docker": "0.2.14"
    },
    "scripts": {
        "generate-docs": "docker /* your args */"
    }
}

docker will reference the "container-manager" in your shell, and docker.js in npm scripts.