2016-06-08 06:23:11 +00:00
< rd-header >
2016-07-07 01:17:44 +00:00
< rd-header-title title = "Container details" >
< i id = "loadingViewSpinner" class = "fa fa-cog fa-spin" > < / i >
< / rd-header-title >
2016-06-08 06:23:11 +00:00
< rd-header-content >
2017-07-08 08:23:00 +00:00
< a ui-sref = "containers" > Containers< / a > > < a ui-sref = "container({id: container.Id})" > {{ container.Name|trimcontainername }}< / a >
2016-06-08 06:23:11 +00:00
< / rd-header-content >
< / rd-header >
2016-06-02 05:34:03 +00:00
< div class = "row" >
2016-08-19 06:41:45 +00:00
< div class = "col-lg-12 col-md-12 col-xs-12" >
2016-06-02 05:34:03 +00:00
< rd-widget >
2016-08-19 06:41:45 +00:00
< rd-widget-header icon = "fa-cogs" title = "Actions" > < / rd-widget-header >
< rd-widget-body classes = "padding" >
< div class = "btn-group" role = "group" aria-label = "..." >
2017-03-20 16:39:53 +00:00
< button class = "btn btn-success" ng-click = "start()" ng-disabled = "container.State.Running" > < i class = "fa fa-play space-right" aria-hidden = "true" > < / i > Start< / button >
< button class = "btn btn-danger" ng-click = "stop()" ng-disabled = "!container.State.Running" > < i class = "fa fa-stop space-right" aria-hidden = "true" > < / i > Stop< / button >
< button class = "btn btn-danger" ng-click = "kill()" ng-disabled = "!container.State.Running" > < i class = "fa fa-bomb space-right" aria-hidden = "true" > < / i > Kill< / button >
< button class = "btn btn-primary" ng-click = "restart()" ng-disabled = "!container.State.Running" > < i class = "fa fa-refresh space-right" aria-hidden = "true" > < / i > Restart< / button >
< button class = "btn btn-primary" ng-click = "pause()" ng-disabled = "!container.State.Running || container.State.Paused" > < i class = "fa fa-pause space-right" aria-hidden = "true" > < / i > Pause< / button >
< button class = "btn btn-primary" ng-click = "unpause()" ng-disabled = "!container.State.Paused" > < i class = "fa fa-play space-right" aria-hidden = "true" > < / i > Resume< / button >
2017-04-25 08:20:57 +00:00
< button class = "btn btn-danger" ng-click = "confirmRemove()" > < i class = "fa fa-trash space-right" aria-hidden = "true" > < / i > Remove< / button >
2016-06-02 05:34:03 +00:00
< / div >
< / rd-widget-body >
< / rd-widget >
< / div >
2016-08-19 06:41:45 +00:00
< / div >
< div class = "row" >
< div class = "col-lg-12 col-md-12 col-xs-12" >
2016-06-02 05:34:03 +00:00
< rd-widget >
2016-09-23 05:19:57 +00:00
< rd-widget-header icon = "fa-server" title = "Container status" > < / rd-widget-header >
2016-08-19 06:41:45 +00:00
< rd-widget-body classes = "no-padding" >
< table class = "table" >
< tbody >
< tr >
< td > Name< / td >
< td ng-if = "!container.edit" >
{{ container.Name|trimcontainername }}
< a href = "" data-toggle = "tooltip" title = "Edit container name" ng-click = "container.edit = true;" > < i class = "fa fa-edit" > < / i > < / a >
< / td >
< td ng-if = "container.edit" >
2016-12-24 19:53:57 +00:00
< form ng-submit = "renameContainer()" >
< input type = "text" class = "containerNameInput" ng-model = "container.newContainerName" >
< a href = "" ng-click = "container.edit = false;" > < i class = "fa fa-times" > < / i > < / a >
< a href = "" ng-click = "renameContainer()" > < i class = "fa fa-check-square-o" > < / i > < / a >
< / form >
2016-08-19 06:41:45 +00:00
< / td >
< / tr >
< tr ng-if = "container.NetworkSettings.IPAddress" >
< td > IP address< / td >
< td > {{ container.NetworkSettings.IPAddress }}< / td >
< / tr >
< tr >
< td > Status< / td >
< td >
2017-04-27 18:40:37 +00:00
< i class = "fa fa-heartbeat space-right green-icon" ng-if = "container.State.Running" > < / i >
< i class = "fa fa-heartbeat space-right red-icon" ng-if = "!container.State.Running && container.State.Status !== 'created'" > < / i >
{{ container.State|getstatetext }} since {{ activityTime }}< span ng-if = "!container.State.Running && container.State.Status !== 'created'" > with exit code {{ container.State.ExitCode }}< / span >
2016-08-19 06:41:45 +00:00
< / td >
< / tr >
2017-04-27 18:40:37 +00:00
< tr >
< td > Created< / td >
< td > {{ container.Created|getisodate }}< / td >
< / tr >
2016-08-19 06:41:45 +00:00
< tr ng-if = "container.State.Running" >
< td > Start time< / td >
< td > {{ container.State.StartedAt|getisodate }}< / td >
< / tr >
2017-04-27 18:40:37 +00:00
< tr ng-if = "!container.State.Running && container.State.Status !== 'created'" >
2016-08-19 06:41:45 +00:00
< td > Finished< / td >
< td > {{ container.State.FinishedAt|getisodate }}< / td >
< / tr >
< tr >
< td colspan = "2" >
< div class = "btn-group" role = "group" aria-label = "..." >
2016-10-27 08:33:39 +00:00
< a class = "btn btn-outline-secondary" type = "button" ui-sref = "stats({id: container.Id})" > < i class = "fa fa-area-chart space-right" aria-hidden = "true" > < / i > Stats< / a >
2017-07-08 09:34:21 +00:00
< a class = "btn btn-outline-secondary" type = "button" ui-sref = "containerlogs({id: container.Id})" > < i class = "fa fa-exclamation-circle space-right" aria-hidden = "true" > < / i > Logs< / a >
2016-10-27 08:33:39 +00:00
< a class = "btn btn-outline-secondary" type = "button" ui-sref = "console({id: container.Id})" > < i class = "fa fa-terminal space-right" aria-hidden = "true" > < / i > Console< / a >
2016-08-19 06:41:45 +00:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
2016-06-02 05:34:03 +00:00
< / rd-widget-body >
< / rd-widget >
< / div >
< / div >
2016-08-19 06:41:45 +00:00
2017-07-12 07:51:51 +00:00
<!-- access - control - panel -->
< por-access-control-panel
ng-if="container & & applicationState.application.authentication"
resource-control="container.ResourceControl"
resource-type="'container'">
< / por-access-control-panel >
<!-- !access - control - panel -->
2017-05-23 18:56:10 +00:00
2017-04-25 09:09:06 +00:00
< div ng-if = "container.State.Health" class = "row" >
< div class = "col-lg-12 col-md-12 col-xs-12" >
< rd-widget >
< rd-widget-header icon = "fa-server" title = "Container health" > < / rd-widget-header >
< rd-widget-body classes = "no-padding" >
< table class = "table" >
< tbody >
< tr >
< td > Status< / td >
< td >
< i ng-class = "{'healthy': 'fa fa-heartbeat space-right green-icon', 'unhealthy': 'fa fa-heartbeat space-right red-icon', 'starting': 'fa fa-heartbeat space-right orange-icon'}[container.State.Health.Status]" > < / i >
{{ container.State.Health.Status }}
< / td >
< / tr >
< tr >
< td > Failure count< / td >
< td > {{ container.State.Health.FailingStreak }}< / td >
< / tr >
< tr >
< td > Last output< / td >
< td > {{ container.State.Health.Log[container.State.Health.Log.length - 1].Output }}< / td >
< / tr >
< / tbody >
< / table >
< / rd-widget-body >
2017-07-08 08:23:00 +00:00
< / rd-widget >
2017-04-25 09:09:06 +00:00
< / div >
< / div >
2016-06-02 05:34:03 +00:00
< div class = "row" >
< div class = "col-lg-12 col-md-12 col-xs-12" >
< rd-widget >
2016-08-19 06:41:45 +00:00
< rd-widget-header icon = "fa-clone" title = "Create image" > < / rd-widget-header >
2016-06-02 05:34:03 +00:00
< rd-widget-body >
2016-08-19 06:41:45 +00:00
< form class = "form-horizontal" >
<!-- tag - description -->
< div class = "form-group" >
< div class = "col-sm-12" >
< span class = "small text-muted" >
You can create an image from this container, this allows you to backup important data or save
helpful configurations. You'll be able to spin up another container based on this image afterward.
< / span >
< / div >
2016-06-02 05:34:03 +00:00
< / div >
2016-08-19 06:41:45 +00:00
<!-- !tag - description -->
2017-06-20 11:00:32 +00:00
<!-- image - and - registry -->
2016-08-19 06:41:45 +00:00
< div class = "form-group" >
2017-06-20 11:00:32 +00:00
< por-image-registry image = "config.Image" registry = "config.Registry" > < / por-image-registry >
2016-06-02 05:34:03 +00:00
< / div >
2017-06-20 11:00:32 +00:00
<!-- !image - and - registry -->
2016-08-19 06:41:45 +00:00
<!-- tag - note -->
< div class = "form-group" >
< div class = "col-sm-12" >
< span class = "small text-muted" > Note: if you don't specify the tag in the image name, < span class = "label label-default" > latest< / span > will be used.< / span >
< / div >
< / div >
<!-- !tag - note -->
< div class = "form-group" >
< div class = "col-sm-12" >
2017-03-27 12:44:39 +00:00
< button type = "button" class = "btn btn-primary btn-sm" ng-disabled = "!config.Image" ng-click = "commit()" > Create< / button >
2016-08-19 06:41:45 +00:00
< i id = "createImageSpinner" class = "fa fa-cog fa-spin" style = "margin-left: 5px; display: none;" > < / i >
< / div >
< / div >
< / form >
2016-06-02 05:34:03 +00:00
< / rd-widget-body >
< / rd-widget >
< / div >
< / div >
2013-06-09 00:12:14 +00:00
2016-06-02 05:34:03 +00:00
< div class = "row" >
2016-08-19 06:41:45 +00:00
< div class = "col-lg-12 col-md-12 col-xs-12" >
2016-06-02 05:34:03 +00:00
< rd-widget >
2016-09-23 05:19:57 +00:00
< rd-widget-header icon = "fa-server" title = "Container details" > < / rd-widget-header >
2016-06-02 05:34:03 +00:00
< rd-widget-body classes = "no-padding" >
< table class = "table" >
< tbody >
< tr >
2016-08-19 06:41:45 +00:00
< td > Image< / td >
< td > < a ui-sref = "image({id: container.Image})" > {{ container.Image }}< / a > < / td >
2016-06-02 05:34:03 +00:00
< / tr >
2016-08-19 06:41:45 +00:00
< tr ng-if = "portBindings.length > 0" >
< td > Port configuration< / td >
2016-06-02 05:34:03 +00:00
< td >
2016-08-19 06:41:45 +00:00
< div ng-repeat = "portMapping in portBindings" >
{{ portMapping.container }} < i class = "fa fa-long-arrow-right" > < / i > {{ portMapping.host }}
< / div >
2016-06-02 05:34:03 +00:00
< / td >
< / tr >
< tr >
2016-08-19 06:41:45 +00:00
< td > CMD< / td >
< td > < code > {{ container.Config.Cmd|command }}< / code > < / td >
< / tr >
< tr >
< td > ENV< / td >
2016-06-02 05:34:03 +00:00
< td >
2016-08-19 06:41:45 +00:00
< table class = "table table-bordered table-condensed" >
2017-05-18 21:17:39 +00:00
< tr ng-repeat = "var in container.Config.Env track by $index" >
2016-08-19 06:41:45 +00:00
< td > {{ var|key: '=' }}< / td >
< td > {{ var|value: '=' }}< / td >
< / tr >
< / table >
2016-06-02 05:34:03 +00:00
< / td >
< / tr >
2016-08-19 06:41:45 +00:00
< tr ng-if = "!(container.Config.Labels | emptyobject)" >
2016-06-02 05:34:03 +00:00
< td > Labels< / td >
< td >
2016-08-19 06:41:45 +00:00
< table class = "table table-bordered table-condensed" >
2016-06-02 05:34:03 +00:00
< tr ng-repeat = "(k, v) in container.Config.Labels" >
< td > {{ k }}< / td >
< td > {{ v }}< / td >
< / tr >
2015-11-27 04:28:01 +00:00
< / table >
2016-06-02 05:34:03 +00:00
< / td >
< / tr >
2017-01-04 06:49:04 +00:00
< tr ng-if = "container.HostConfig.RestartPolicy.Name !== 'no'" >
< td > Restart policies< / td >
< td >
< table class = "table table-bordered table-condensed" >
< tr >
< td class = "col-md-3" > Name< / td >
< td > {{ container.HostConfig.RestartPolicy.Name }}< / td >
< / tr >
< tr >
< td class = "col-md-3" > MaximumRetryCount< / td >
< td >
{{ container.HostConfig.RestartPolicy.MaximumRetryCount }}
< / td >
< / tr >
< / table >
< / td >
< / tr >
2016-06-02 05:34:03 +00:00
< / tbody >
< / table >
< / rd-widget-body >
< / rd-widget >
< / div >
2016-08-19 06:41:45 +00:00
< / div >
< div class = "row" ng-if = "container.HostConfig.Binds.length > 0" >
< div class = "col-lg-12 col-md-12 col-xs-12" >
2016-06-02 05:34:03 +00:00
< rd-widget >
2016-08-19 06:41:45 +00:00
< rd-widget-header icon = "fa-cubes" title = "Volumes" > < / rd-widget-header >
2016-06-02 05:34:03 +00:00
< rd-widget-body classes = "no-padding" >
< table class = "table" >
2016-08-19 06:41:45 +00:00
< thead >
< tr >
< th > Host< / th >
< th > Container< / th >
< / tr >
< / thead >
2016-06-02 05:34:03 +00:00
< tbody >
2016-08-19 06:41:45 +00:00
< tr ng-repeat = "vol in container.HostConfig.Binds" >
< td > {{ vol|key: ':' }}< / td >
< td > {{ vol|value: ':' }}< / td >
2016-06-02 05:34:03 +00:00
< / tr >
< / tbody >
< / table >
< / rd-widget-body >
< / rd-widget >
< / div >
2016-08-19 06:41:45 +00:00
< / div >
2016-11-07 04:36:00 +00:00
< div class = "row" ng-if = "!(container.NetworkSettings.Networks | emptyobject)" >
< div class = "col-lg-12 col-md-12 col-xs-12" >
< rd-widget >
2017-01-24 01:28:40 +00:00
< rd-widget-header icon = "fa-sitemap" title = "Connected networks" >
< div class = "pull-right" >
Items per page:
< select ng-model = "state.pagination_count" ng-change = "changePaginationCount()" >
< option value = "0" > All< / option >
< option value = "10" > 10< / option >
< option value = "25" > 25< / option >
< option value = "50" > 50< / option >
< option value = "100" > 100< / option >
< / select >
< / div >
< / rd-widget-header >
2016-11-07 04:36:00 +00:00
< rd-widget-body classes = "no-padding" >
< table class = "table" >
< thead >
< th > Network Name< / th >
< th > IP Address< / th >
< th > Gateway< / th >
< th > MacAddress< / th >
< th > Actions< / th >
< / thead >
< tbody >
2017-01-24 01:28:40 +00:00
< tr dir-paginate = "(key, value) in container.NetworkSettings.Networks | itemsPerPage: state.pagination_count" >
2016-11-07 04:36:00 +00:00
< td > < a ui-sref = "network({id: value.NetworkID})" > {{ key }}< / a > < / td >
< td > {{ value.IPAddress || '-' }}< / td >
< td > {{ value.Gateway || '-' }}< / td >
< td > {{ value.MacAddress || '-' }}< / td >
< td >
< button type = "button" class = "btn btn-xs btn-danger" ng-click = "containerLeaveNetwork(container, value.NetworkID)" > < i class = "fa fa-trash space-right" aria-hidden = "true" > < / i > Leave Network< / button >
< / td >
< / tr >
< / tbody >
< / table >
2016-11-17 12:50:46 +00:00
< div class = "pagination-controls" >
< dir-pagination-controls > < / dir-pagination-controls >
< / div >
2017-06-29 13:49:35 +00:00
< hr / >
< form class = "form-horizontal" >
<!-- network - input -->
< div class = "row" >
2017-06-29 14:04:49 +00:00
< label for = "container_network" class = "col-sm-3 col-lg-2 control-label text-left" > Join a Network< / label >
< div class = "col-sm-5 col-lg-4" >
2017-06-29 13:49:35 +00:00
< select class = "form-control" ng-model = "selectedNetwork" id = "container_network" >
< option selected disabled hidden value = "" > Select a network< / option >
< option ng-repeat = "net in availableNetworks" ng-value = "net.Id" > {{ net.Name }}< / option >
< / select >
< / div >
2017-06-29 14:04:49 +00:00
< div class = "col-sm-1" >
2017-06-29 13:49:35 +00:00
< button type = "button" class = "btn btn-primary btn-sm" ng-disabled = "!selectedNetwork" ng-click = "containerJoinNetwork(container, selectedNetwork)" > Join Network< / button >
< / div >
< / div >
< / form >
2016-11-07 04:36:00 +00:00
< / rd-widget-body >
< / rd-widget >
< / div >
< / div >