mirror of https://github.com/docker/docs.git
Image.Changes(): list all changes between an image and a rw directory
This commit is contained in:
parent
31296cc3f7
commit
c8db980add
|
@ -149,6 +149,14 @@ func (image *Image) Mount(root, rw string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (image *Image) Changes(rw string) ([]Change, error) {
|
||||||
|
layers, err := image.layers()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return Changes(layers, rw)
|
||||||
|
}
|
||||||
|
|
||||||
func ValidateId(id string) error {
|
func ValidateId(id string) error {
|
||||||
if id == "" {
|
if id == "" {
|
||||||
return fmt.Errorf("Image id can't be empty")
|
return fmt.Errorf("Image id can't be empty")
|
||||||
|
|
Loading…
Reference in New Issue