mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
fix(docker/images): export image [EE-6807] (#11306)
This commit is contained in:
parent
ebcc98d5c5
commit
18dbad232e
3 changed files with 7 additions and 2 deletions
|
@ -162,7 +162,7 @@ angular.module('portainer.docker').controller('ImageController', [
|
|||
function exportImage(image) {
|
||||
HttpRequestHelper.setPortainerAgentTargetHeader(image.NodeName);
|
||||
$scope.state.exportInProgress = true;
|
||||
ImageService.downloadImages([image])
|
||||
ImageService.downloadImages([{ tags: image.RepoTags, id: image.Id }])
|
||||
.then(function success(data) {
|
||||
var downloadData = new Blob([data.file], { type: 'application/x-tar' });
|
||||
FileSaver.saveAs(downloadData, 'images.tar');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue