mirror of
https://github.com/containers/skopeo.git
synced 2026-05-18 21:16:42 +00:00
More on importing containers that we didn't create
Continue the work from a0d394af74 by
making open-by-path work correctly again.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
@@ -198,7 +198,11 @@ func OpenBuilderByPath(store storage.Store, path string) (*Builder, error) {
|
||||
return false
|
||||
}
|
||||
for _, container := range containers {
|
||||
buildstate, err := store.GetMetadata(container.ID)
|
||||
cdir, err := store.GetContainerDirectory(container.ID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
buildstate, err := ioutil.ReadFile(filepath.Join(cdir, stateFile))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user