README.md in docker-api-1.30.2 vs README.md in docker-api-1.31.0
- old
+ new
@@ -370,10 +370,17 @@
'1234/tcp' => [{ 'HostPort' => '1234', 'HostIp' => '192.168.99.100' }]
}
}
)
+# Stores a file with the given content in the container
+container.store_file("/test", "Hello world")
+
+# Reads a file from the container
+container.read_file("/test")
+# => "Hello world"
+
# Export a Container. Since an export is typically at least 300M, chunks of the
# export are yielded instead of just returning the whole thing.
File.open('export.tar', 'w') do |f|
container.export { |chunk| file.write(chunk) }
end
@@ -495,9 +502,12 @@
# => [["Set max seconds for exec!"], [], 0]
# Delete a Container.
container.delete(:force => true)
# => nil
+
+# Update the container.
+container.update("CpuShares" => 50000")
# Request a Container by ID or name.
Docker::Container.get('500f53b25e6e')
# => Docker::Container { :id => , :connection => Docker::Connection { :url => tcp://localhost, :options => {:port=>2375} } }