mirror of
https://github.com/containers/podman.git
synced 2025-06-26 04:46:57 +08:00
save and load should support multi-tag for docker-archive
The docker-archive tar files can have multiple tags for the same image stored in it. Load pulls all the tags found in the archive when loading a tar file. Save can oush multiple tags of the same image to a tar archive. Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #819 Approved by: rhatdan
This commit is contained in:
@ -567,8 +567,8 @@ func (p *PodmanTest) GetHostDistribution() string {
|
||||
return ""
|
||||
}
|
||||
for _, line := range content {
|
||||
if strings.HasPrefix(fmt.Sprintf("%s", line), "ID") {
|
||||
fields := strings.Split(fmt.Sprintf("%s", line), "=")
|
||||
if strings.HasPrefix(fmt.Sprintf("%x", line), "ID") {
|
||||
fields := strings.Split(fmt.Sprintf("%x", line), "=")
|
||||
if len(fields) < 2 {
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user