feat(container): add Container.logs
+ 6
- 0
src/docker/container.cr
@@ -114,6 +114,12 @@ class Docker::Container
     self
   end
 
+  # Get logs from the container.
+  def logs
+    response = client.logs id
+    response.body
+  end
+
   # Block until the container stops, then return its exit code.
   def wait(condition = nil)
     response = client.wait id, condition