Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix container register failed during daemon start and then start the container #16275

Merged
merged 1 commit into from
Sep 15, 2015

Conversation

coolljt0725
Copy link
Contributor

Signed-off-by: Lei Jitang leijitang@huawei.com

The container register failed during daemon starting should not be
started even if it has a restart policy

Fixes #14199

@@ -315,6 +315,8 @@ func (daemon *Daemon) restore() error {

if err := daemon.Register(container); err != nil {
logrus.Debugf("Failed to register container %s: %s", container.ID, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the log level should be "ERROR" instead of "DEBUG".
Otherwise we have to ask the user to switch on the debug flag to report such kind of bugs, which is a bit inconvenient.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mountkin Agree . thanks :-)

@coolljt0725 coolljt0725 force-pushed the fix_register_failed_and_start branch from 21beca9 to b4841dd Compare September 14, 2015 02:47
…e container

Signed-off-by: Lei Jitang <leijitang@huawei.com>
@ChrisRut
Copy link

@coolljt0725 , Thanks for whipping up this patch. I look forward to using this to fix my problem (#14199).

Can you point me to the guide on how to build this branch locally so I can test this on my system? How risky is it to run MASTER ? I suppose I could apply this patch to the v1.8.2 tag, would you recommend that instead?

@coolljt0725
Copy link
Contributor Author

@ChrisRut I think we should wait the Maintainers to review and confirm this is the right fix. :-)

@ChrisRut
Copy link

Fair enough 🔜...

@cpuguy83
Copy link
Member

LGTM

@runcom
Copy link
Member

runcom commented Sep 14, 2015

LGTM

runcom added a commit that referenced this pull request Sep 15, 2015
Fix container register failed during daemon start and then start the container
@runcom runcom merged commit db2ac86 into moby:master Sep 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants