package aufs
import "github.com/docker/docker/graphdriver/aufs"
Index ¶
- func Init(root string) (graphdriver.Driver, error)
- func Unmount(target string) error
- type Driver
- func (a *Driver) ApplyDiff(id string, diff archive.Archive) error
- func (a *Driver) Changes(id string) ([]archive.Change, error)
- func (a *Driver) Cleanup() error
- func (a *Driver) Create(id, parent string) error
- func (a *Driver) Diff(id string) (archive.Archive, error)
- func (a *Driver) DiffSize(id string) (int64, error)
- func (a Driver) Exists(id string) bool
- func (a *Driver) Get(id string) (string, error)
- func (a *Driver) Migrate(pth string, setupInit func(p string) error) error
- func (a *Driver) Remove(id string) error
- func (a Driver) Status() [][2]string
- func (Driver) String() string
Functions ¶
func Init ¶
func Init(root string) (graphdriver.Driver, error)
New returns a new AUFS driver. An error is returned if AUFS is not supported.
func Unmount ¶
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func (*Driver) ApplyDiff ¶
func (*Driver) Changes ¶
func (*Driver) Cleanup ¶
During cleanup aufs needs to unmount all mountpoints
func (*Driver) Create ¶
Three folders are created for each id mnt, layers, and diff
func (*Driver) Diff ¶
Returns an archive of the contents for the id
func (*Driver) DiffSize ¶
Returns the size of the contents for the id
func (Driver) Exists ¶
Exists returns true if the given id is registered with this driver
func (*Driver) Get ¶
Return the rootfs path for the id This will mount the dir at it's given path
func (*Driver) Migrate ¶
Migrate existing images and containers from docker < 0.7.x
The format pre 0.7 is for docker to store the metadata and filesystem content in the same directory. For the migration to work we need to move Image layer data from /var/lib/docker/graph/<id>/layers to the diff of the registered id.
Next we need to migrate the container's rw layer to diff of the driver. After the contents are migrated we need to register the image and container ids with the driver.
For the migration we try to move the folder containing the layer files, if that fails because the data is currently mounted we will fallback to creating a symlink.
func (*Driver) Remove ¶
Unmount and remove the dir information
func (Driver) Status ¶
func (Driver) String ¶
Source Files ¶
aufs.go dirs.go migrate.go mount.go
- Version
- v0.7.6
- Published
- Jan 15, 2014
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 3 minutes ago –
Tools for package owners.