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

Avoid exception if files .dockerinit / .dockerenv aren't present #2

Merged
merged 1 commit into from
Nov 11, 2017

Conversation

geaaru
Copy link
Contributor

@geaaru geaaru commented Nov 10, 2017

Files .dockerinit/.dockerenv aren't deprecated [https://github.com/moby/moby/issues/18355]

@geaaru geaaru force-pushed the fix-clean-docker-files branch 2 times, most recently from 3557976 to 6058310 Compare November 10, 2017 22:39
}
}

err = os.Remove(dirname + SEPARATOR + ".dockerinit")
if err != nil {
if fatal == true {
Copy link
Owner

Choose a reason for hiding this comment

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

+1 for checking before removing, but i would still keep the fatal flag usage

@geaaru geaaru force-pushed the fix-clean-docker-files branch from 6058310 to bd1bb75 Compare November 11, 2017 13:43
@mudler
Copy link
Owner

mudler commented Nov 11, 2017

Thanks!

@mudler mudler merged commit 967d131 into mudler:master Nov 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants