diff --git a/lib/docker/image.rb b/lib/docker/image.rb index 3d5619f54..de189d767 100644 --- a/lib/docker/image.rb +++ b/lib/docker/image.rb @@ -138,8 +138,8 @@ def remove(id, opts = {}, conn = Docker.connection) alias_method :delete, :remove # Prune images - def prune(conn = Docker.connection) - conn.post("/images/prune", {}) + def prune(opts = {}, conn = Docker.connection) + conn.post("/images/prune", opts) end