mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
daemon: un-export ModifyRootKeyLimit()
it's only used internally, so no need to export Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
95d69658be
commit
34b854f965
3 changed files with 5 additions and 5 deletions
|
@ -751,7 +751,7 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S
|
|||
}
|
||||
|
||||
// Ensure that we have a correct root key limit for launching containers.
|
||||
if err := ModifyRootKeyLimit(); err != nil {
|
||||
if err := modifyRootKeyLimit(); err != nil {
|
||||
logrus.Warnf("unable to modify root key limit, number of containers could be limited by this quota: %v", err)
|
||||
}
|
||||
|
||||
|
|
|
@ -18,10 +18,10 @@ const (
|
|||
rootKeyByteMultiplier = 25
|
||||
)
|
||||
|
||||
// ModifyRootKeyLimit checks to see if the root key limit is set to
|
||||
// modifyRootKeyLimit checks to see if the root key limit is set to
|
||||
// at least 1000000 and changes it to that limit along with the maxbytes
|
||||
// allocated to the keys at a 25 to 1 multiplier.
|
||||
func ModifyRootKeyLimit() error {
|
||||
func modifyRootKeyLimit() error {
|
||||
value, err := readRootKeyLimit(rootKeyFile)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
package daemon // import "github.com/docker/docker/daemon"
|
||||
|
||||
// ModifyRootKeyLimit is a noop on unsupported platforms.
|
||||
func ModifyRootKeyLimit() error {
|
||||
// modifyRootKeyLimit is a noop on unsupported platforms.
|
||||
func modifyRootKeyLimit() error {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue