本文整理汇总了Golang中github.com/docker/docker/daemon/graphdriver.Register函数的典型用法代码示例。如果您正苦于以下问题:Golang Register函数的具体用法?Golang Register怎么用?Golang Register使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Register函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: init
// init registers the windows graph drivers to the register.
func init() {
graphdriver.Register("windowsfilter", InitFilter)
// DOCKER_WINDOWSFILTER_NOREEXEC allows for inline processing which makes
// debugging issues in the re-exec codepath significantly easier.
if os.Getenv("DOCKER_WINDOWSFILTER_NOREEXEC") != "" {
logrus.Warnf("WindowsGraphDriver is set to not re-exec. This is intended for debugging purposes only.")
noreexec = true
} else {
reexec.Register("docker-windows-write-layer", writeLayerReexec)
}
}
示例2: initGraph
func initGraph() (*graph.Graph, error) {
graphdriver.Register("devicemapper", devmapper.Init)
graphdriver.DefaultDriver = "devicemapper"
// Load storage driver
driver, err := graphdriver.New(root, graphOptions)
if err != nil {
log.Errorf("Load storage driver error: %v", err)
return nil, err
}
log.Debugf("Using graph driver %s", driver)
log.Debugf("Creating images graph")
g, err := graph.NewGraph(path.Join(root, "graph"), driver)
if err != nil {
log.Errorf("Creating images graph error: %v", err)
return nil, err
}
return g, nil
}
示例3: init
// init registers the windows graph drivers to the register.
func init() {
graphdriver.Register("windowsfilter", InitFilter)
graphdriver.Register("windowsdiff", InitDiff)
}
示例4: init
// init registers the windows graph drivers to the register.
func init() {
graphdriver.Register("windowsfilter", InitFilter)
reexec.Register("docker-windows-write-layer", writeLayer)
}
示例5: init
func init() {
graphdriver.Register("zfs", Init)
}
示例6: Register
func Register(d *hyperdaemon.Daemon) {
daemon = d
graphdriver.Register("vbox", Init)
}
示例7: init
func init() {
graphdriver.Register(driverName, Init)
}
示例8: init
func init() {
dbg("ZFS init") // This debug line shows up in `docker run` output, when the container is launched.
graphdriver.Register("zfs", Init)
}
示例9: init
func init() {
graphdriver.Register("flynn", newGraphDriver)
}