-
Notifications
You must be signed in to change notification settings - Fork 69
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 transient mounts in Docker 1.12 #14
Conversation
629954b
to
ef006a3
Compare
@jawnsy can you give this a try on 1.12 and see it works for you? |
ef006a3
to
6dfd613
Compare
Good news - there appears to be a race in docker 1.12 where volumes aren't initialized prior to startup. That's what blocks this. |
Use a temporary container to receive the copy instead of using host mounts.
6dfd613
to
43a7086
Compare
Use the same flag constructs. Also refactor the code for more flexibility in the future and easier consumption.
|
||
``` | ||
$ imagebuilder path_to_directory output_image_name | ||
$ imagebuilder [-t TAG] DIRECTORY |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a breaking change? What's our compatibility statement with respect to use of imagebuilder
in scripts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and none (yet).
Merging to unbreak docker 1.12 for everything except transient mounts. |
Use a temporary container instead of hostconfig on start. Add a test case.
Fixes #6