mirror of
https://github.com/portainer/portainer.git
synced 2025-07-31 03:09:44 +02:00
Added possibility to specify name at container creation
This commit is contained in:
parent
5075995129
commit
29df9cf226
3 changed files with 12 additions and 4 deletions
|
@ -4,7 +4,9 @@ angular.module('dockerui.services', ['ngResource'])
|
|||
.factory('Container', function($resource, Settings) {
|
||||
// Resource for interacting with the docker containers
|
||||
// http://docs.docker.io/en/latest/api/docker_remote_api.html#containers
|
||||
return $resource(Settings.url + '/containers/:id/:action', {}, {
|
||||
return $resource(Settings.url + '/containers/:id/:action', {
|
||||
name: '@name'
|
||||
}, {
|
||||
query: {method: 'GET', params:{ all: 0, action: 'json'}, isArray: true},
|
||||
get :{method: 'GET', params: { action:'json'}},
|
||||
start: {method: 'POST', params: {id: '@id', action: 'start'}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue