feat(containers): add containers.logs(id : String)@@ -116,6 +116,12 @@ module Docker::Api::Containers
nil
end
+ # Get logs from a container
+ def logs(id : String)
+ response = post "/containers/#{id}/logs"
+ response.body
+ end
+
# Block until a container stops, then returns the exit code.
#
# Similar to `docker wait` command.