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