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) Upstream-commit: d04fa49a0dec89d2f71a813ce8eaa182184139c5 Component: engine
10 lines
185 B
Go
10 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()
|
|
}
|