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 transient mounts in Docker 1.12 #14

Merged
merged 2 commits into from
Oct 27, 2016

Conversation

smarterclayton
Copy link
Contributor

@smarterclayton smarterclayton commented Oct 16, 2016

Use a temporary container instead of hostconfig on start. Add a test case.

Fixes #6

@smarterclayton
Copy link
Contributor Author

@jawnsy can you give this a try on 1.12 and see it works for you?

@smarterclayton
Copy link
Contributor Author

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.
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
Copy link

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, and none (yet).

@smarterclayton
Copy link
Contributor Author

Merging to unbreak docker 1.12 for everything except transient mounts.

@smarterclayton smarterclayton merged commit 1382f05 into openshift:master Oct 27, 2016
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