Skip to content

Commit 739cb4c

Browse files
committed
config: improve config v1 deprecation message
The previous wording was causing confusion. Fix moby/moby issue 43628 Signed-off-by: Akihiro Suda <[email protected]>
1 parent ac85382 commit 739cb4c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

services/server/config/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ func (c *Config) GetVersion() int {
9999
func (c *Config) ValidateV2() error {
100100
version := c.GetVersion()
101101
if version < 2 {
102-
logrus.Warnf("deprecated version : `%d`, please switch to version `2`", version)
102+
logrus.Warnf("containerd config version `%d` has been deprecated and will be removed in containerd v2.0, please switch to version `2`, "+
103+
"see https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header", version)
103104
return nil
104105
}
105106
for _, p := range c.DisabledPlugins {

0 commit comments

Comments
 (0)