-
Notifications
You must be signed in to change notification settings - Fork 288
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
Support docker v0.8 #87
Conversation
What is the impact on us re: the 2 methods that no longer work? |
API 1.9 is out - any reason we're not using that instead of 1.8? |
@adamjt regarding your first question -- no. "No longer work" may not have been the correct term. They are very specific use-cases that have easy workarounds. The former should never impact us so long as we ensure that we copy the correct files. We never used the second way of running an Image. Regarding your second question, ask @bfulton. |
Ah, ok. So these are Docker bugs that should be resolved (hopefully) on their end? |
@adamjt yes. |
|
@@ -140,7 +140,8 @@ def all(opts = {}, conn = Docker.connection) | |||
def search(query = {}, connection = Docker.connection) | |||
body = connection.get('/images/search', query) | |||
hashes = Docker::Util.parse_json(body) || [] | |||
hashes.map { |hash| new(connection, hash['Name']) } | |||
puts hashes |
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.
Don't need the puts
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.
Good catch!
@tlunter I updated the repo to your suggestions. |
+1 |
Merging. |
@bfulton @tlunter @adamjt
Not very many code changes were required, but two methods no longer work (due to errors in the Docker server). The first is
Container#copy
will not raise an error if the specified file does not exist. The second isContainer#commit
will not properly copy over therun
configuration.