mirror of
https://github.com/portainer/portainer.git
synced 2025-07-28 01:39:39 +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
|
@ -121,9 +121,18 @@ export function fullURIIntoRepoAndTag(fullURI: string) {
|
|||
// - registry/image-repo:tag
|
||||
// - image-repo:tag
|
||||
// - registry:port/image-repo:tag
|
||||
// - localhost:5000/nginx
|
||||
// buildImageFullURIFromModel always gives a tag (defaulting to 'latest'), so the tag is always present after the last ':'
|
||||
const parts = fullURI.split(':');
|
||||
const tag = parts.pop() || 'latest';
|
||||
|
||||
// handle the case of a repo with a non standard port
|
||||
if (tag.includes('/')) {
|
||||
return {
|
||||
repo: fullURI,
|
||||
tag: 'latest',
|
||||
};
|
||||
}
|
||||
const repo = parts.join(':');
|
||||
return {
|
||||
repo,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue