You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/docker/views/containers/inspect/containerInspectController.js

28 lines
795 B

angular.module('portainer.docker').controller('ContainerInspectController', [
'$scope',
'$transition$',
'Notifications',
'ContainerService',
'HttpRequestHelper',
'endpoint',
function ($scope, $transition$, Notifications, ContainerService, HttpRequestHelper, endpoint) {
$scope.state = {
DisplayTextView: false,
};
$scope.containerInfo = {};
function initView() {
HttpRequestHelper.setPortainerAgentTargetHeader($transition$.params().nodeName);
ContainerService.inspect(endpoint.Id, $transition$.params().id)
.then(function success(d) {
$scope.containerInfo = d;
})
.catch(function error(e) {
Notifications.error('Failure', e, 'Unable to inspect container');
});
}
initView();
},
]);