mirror of
https://github.com/docker/docs.git
synced 2026-04-02 01:08:53 +07:00
Image.Changes(): list all changes between an image and a rw directory
This commit is contained in:
@@ -149,6 +149,14 @@ func (image *Image) Mount(root, rw string) error {
|
||||
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 {
|
||||
if id == "" {
|
||||
return fmt.Errorf("Image id can't be empty")
|
||||
|
||||
Reference in New Issue
Block a user