From 3d251fdba4579b978f21d773b60b2bb01ff46e94 Mon Sep 17 00:00:00 2001 From: Kevan Ahlquist Date: Sun, 1 Feb 2015 17:15:58 -0600 Subject: [PATCH] Fixes #75 --- app/components/startContainer/startContainerController.js | 4 +++- dist/dockerui.js | 8 +++++--- dist/index.html | 2 +- package.json | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/components/startContainer/startContainerController.js b/app/components/startContainer/startContainerController.js index f913d55a6..f3f5cac81 100644 --- a/app/components/startContainer/startContainerController.js +++ b/app/components/startContainer/startContainerController.js @@ -110,7 +110,9 @@ function($scope, $routeParams, $location, Container, Messages, containernameFilt var s = $scope; Container.create(config, function(d) { if (d.Id) { - ctor.start({id: d.Id}, function(cd) { + var reqBody = config.HostConfig || {}; + reqBody.id = d.Id; + ctor.start(reqBody, function(cd) { if (cd.id) { Messages.send('Container Started', d.Id); $('#create-modal').modal('hide'); diff --git a/dist/dockerui.js b/dist/dockerui.js index 5ffdda001..adb915903 100644 --- a/dist/dockerui.js +++ b/dist/dockerui.js @@ -1,6 +1,6 @@ -/*! dockerui - v0.6.0 - 2015-01-31 +/*! dockerui - v0.6.0 - 2015-02-01 * https://github.com/crosbymichael/dockerui - * Copyright (c) 2015 Michael Crosby; + * Copyright (c) 2015 Michael Crosby & Kevan Ahlquist; * Licensed MIT */ angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings', 'builder', 'containerLogs']) @@ -613,7 +613,9 @@ function($scope, $routeParams, $location, Container, Messages, containernameFilt var s = $scope; Container.create(config, function(d) { if (d.Id) { - ctor.start({id: d.Id}, function(cd) { + var reqBody = config.HostConfig || {}; + reqBody.id = d.Id; + ctor.start(reqBody, function(cd) { if (cd.id) { Messages.send('Container Started', d.Id); $('#create-modal').modal('hide'); diff --git a/dist/index.html b/dist/index.html index 11d129a16..92d74ad7d 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ DockerUI - + diff --git a/package.json b/package.json index a1b9034ae..168ece42e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "author": "Michael Crosby", + "author": "Michael Crosby & Kevan Ahlquist", "name": "dockerui", "homepage": "https://github.com/crosbymichael/dockerui", "version": "0.6.0",