mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +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,4 +1,4 @@
|
|||
import { buildImageFullURIFromModel, imageContainsURL } from '@/react/docker/images/utils';
|
||||
import { buildImageFullURIFromModel, imageContainsURL, fullURIIntoRepoAndTag } from '@/react/docker/images/utils';
|
||||
|
||||
angular.module('portainer.docker').factory('ImageHelper', ImageHelperFactory);
|
||||
function ImageHelperFactory() {
|
||||
|
@ -18,8 +18,12 @@ function ImageHelperFactory() {
|
|||
* @param {PorImageRegistryModel} registry
|
||||
*/
|
||||
function createImageConfigForContainer(imageModel) {
|
||||
const fromImage = buildImageFullURIFromModel(imageModel);
|
||||
const { tag, repo } = fullURIIntoRepoAndTag(fromImage);
|
||||
return {
|
||||
fromImage: buildImageFullURIFromModel(imageModel),
|
||||
fromImage,
|
||||
tag,
|
||||
repo,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue