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>
| ... | ... |
@@ -30,10 +30,6 @@ func (daemon *Daemon) registerName(container *container.Container) error {
|
| 30 | 30 |
return err |
| 31 | 31 |
} |
| 32 | 32 |
container.Name = name |
| 33 |
- |
|
| 34 |
- if err := container.ToDiskLocking(); err != nil {
|
|
| 35 |
- logrus.Errorf("Error saving container name to disk: %v", err)
|
|
| 36 |
- } |
|
| 37 | 33 |
} |
| 38 | 34 |
return daemon.nameIndex.Reserve(container.Name, container.ID) |
| 39 | 35 |
} |