2015-05-02 04:03:35 +03:00
|
|
|
package daemon
|
|
|
|
|
2015-09-11 01:01:18 +03:00
|
|
|
import (
|
|
|
|
"github.com/docker/docker/context"
|
|
|
|
"github.com/docker/docker/pkg/archive"
|
|
|
|
)
|
2015-05-02 04:03:35 +03:00
|
|
|
|
|
|
|
// ContainerChanges returns a list of container fs changes
|
2015-09-11 01:01:18 +03:00
|
|
|
func (daemon *Daemon) ContainerChanges(ctx context.Context, name string) ([]archive.Change, error) {
|
|
|
|
container, err := daemon.Get(ctx, name)
|
2015-05-02 04:03:35 +03:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
2015-07-31 00:01:53 +03:00
|
|
|
return container.changes()
|
2015-05-02 04:03:35 +03:00
|
|
|
}
|