diff --git a/lib/create.js b/lib/create.js index 18385b4..e419c7b 100644 --- a/lib/create.js +++ b/lib/create.js @@ -148,6 +148,11 @@ module.exports = { if(cmd.indexOf("constraint") >= 0){ arr.push("--constraint "+app.constraint); } + if(cmd.indexOf("constraints") >= 0){ + app.constraints.forEach((v)=>{ + arr.push("--constraint "+v); + }); + } if(cmd.indexOf("networks") >= 0){ app.networks.forEach(function(v){ arr.push("--network "+v); diff --git a/package.json b/package.json index b9bee94..d28319d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orcinus", - "version": "0.4.4", + "version": "0.5.0", "description": "Container orchestration tools", "main": "cli.js", "scripts": {