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