mirror of
https://github.com/portainer/portainer.git
synced 2025-08-03 12:55:23 +02:00
fix(podman): create new image from a container in podman [r8s-90] (#347)
This commit is contained in:
parent
5423a2f1b9
commit
371e84d9a5
6 changed files with 37 additions and 10 deletions
|
@ -1,5 +1,4 @@
|
|||
import { PorImageRegistryModel } from 'Docker/models/porImageRegistry';
|
||||
import { fullURIIntoRepoAndTag } from '@/react/docker/images/utils';
|
||||
|
||||
angular.module('portainer.docker').controller('ImportImageController', [
|
||||
'$scope',
|
||||
|
@ -34,8 +33,7 @@ angular.module('portainer.docker').controller('ImportImageController', [
|
|||
async function tagImage(id) {
|
||||
const registryModel = $scope.formValues.RegistryModel;
|
||||
if (registryModel.Image) {
|
||||
const image = ImageHelper.createImageConfigForContainer(registryModel);
|
||||
const { repo, tag } = fullURIIntoRepoAndTag(image.fromImage);
|
||||
const { repo, tag } = ImageHelper.createImageConfigForContainer(registryModel);
|
||||
try {
|
||||
await ImageService.tagImage(id, repo, tag);
|
||||
} catch (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue