瀏覽代碼

no need to save state to disk here

State will be saved on the following operation once the container is
properly registered on the daemon.

Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
Fabio Kung 8 年之前
父節點
當前提交
03aa24721c
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      daemon/names.go

+ 0 - 4
daemon/names.go

@@ -30,10 +30,6 @@ func (daemon *Daemon) registerName(container *container.Container) error {
 			return err
 		}
 		container.Name = name
-
-		if err := container.ToDiskLocking(); err != nil {
-			logrus.Errorf("Error saving container name to disk: %v", err)
-		}
 	}
 	return daemon.nameIndex.Reserve(container.Name, container.ID)
 }