2015-05-01 21:03:35 -04:00
|
|
|
package daemon
|
|
|
|
|
2015-09-29 13:51:40 -04:00
|
|
|
import "github.com/docker/docker/pkg/archive"
|
2015-05-01 21:03:35 -04:00
|
|
|
|
|
|
|
// ContainerChanges returns a list of container fs changes
|
2015-09-29 13:51:40 -04:00
|
|
|
func (daemon *Daemon) ContainerChanges(name string) ([]archive.Change, error) {
|
2015-12-11 12:39:28 -05:00
|
|
|
container, err := daemon.GetContainer(name)
|
2015-05-01 21:03:35 -04:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
2015-11-02 20:14:09 -05:00
|
|
|
container.Lock()
|
|
|
|
defer container.Unlock()
|
2016-05-24 11:49:26 -04:00
|
|
|
return container.RWLayer.Changes()
|
2015-05-01 21:03:35 -04:00
|
|
|
}
|