1
0
Fork 0
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:
Sebastiaan van Stijn 2020-11-09 15:34:26 +01:00
parent 95d69658be
commit 34b854f965
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
3 changed files with 5 additions and 5 deletions

View file

@ -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. // 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) logrus.Warnf("unable to modify root key limit, number of containers could be limited by this quota: %v", err)
} }

View file

@ -18,10 +18,10 @@ const (
rootKeyByteMultiplier = 25 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 // at least 1000000 and changes it to that limit along with the maxbytes
// allocated to the keys at a 25 to 1 multiplier. // allocated to the keys at a 25 to 1 multiplier.
func ModifyRootKeyLimit() error { func modifyRootKeyLimit() error {
value, err := readRootKeyLimit(rootKeyFile) value, err := readRootKeyLimit(rootKeyFile)
if err != nil { if err != nil {
return err return err

View file

@ -2,7 +2,7 @@
package daemon // import "github.com/docker/docker/daemon" package daemon // import "github.com/docker/docker/daemon"
// ModifyRootKeyLimit is a noop on unsupported platforms. // modifyRootKeyLimit is a noop on unsupported platforms.
func ModifyRootKeyLimit() error { func modifyRootKeyLimit() error {
return nil return nil
} }