1
0
Fork 0
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:
Chaim Lev-Ari 2024-03-05 19:30:48 +02:00 committed by GitHub
parent ebcc98d5c5
commit 18dbad232e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -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');