mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
d04fa49a0d
RWLayer will now have more operations and be protected through a referenced type rather than always looked up by string in the layer store. Separates creation of RWLayer (write capture layer) from mounting of the layer. This allows mount labels to be applied after creation and allowing RWLayer objects to have the same lifespan as a container without performance regressions from requiring mount. Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
9 lines
185 B
Go
9 lines
185 B
Go
// +build linux freebsd darwin
|
|
|
|
package layer
|
|
|
|
import "github.com/docker/docker/pkg/stringid"
|
|
|
|
func (ls *layerStore) mountID(name string) string {
|
|
return stringid.GenerateRandomID()
|
|
}
|