Skip to content

Commit

Permalink
[docker:2.2] Drop deprecated parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSchneid3r committed Aug 12, 2024
1 parent bb60bbe commit 2d2c9eb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import docker
from albert import *

md_iid = '2.3'
md_version = "2.1"
md_iid = "2.3"
md_version = "2.2"
md_name = "Docker"
md_description = "Manage docker images and containers"
md_license = "MIT"
Expand Down Expand Up @@ -59,7 +59,7 @@ def handleGlobalQuery(self, query):
actions = [Action("start", "Start container", lambda c=container: c.start())]
actions.extend([
Action("logs", "Logs",
lambda c=container.id: runTerminal("docker logs -f %s" % c, close_on_exit=False)),
lambda c=container.id: runTerminal("docker logs -f %s ; exec $SHELL" % c)),
Action("remove", "Remove (forced, with volumes)",
lambda c=container: c.remove(v=True, force=True)),
Action("copy-id", "Copy id to clipboard",
Expand All @@ -86,9 +86,11 @@ def handleGlobalQuery(self, query):
text=", ".join(image.tags),
subtext="Image: %s" % image.id,
iconUrls=self.icon_urls_stopped,
actions=[Action("run", "Run with command: %s" % query.string,
lambda i=image, s=query.string: client.containers.run(i, s)),
Action("rmi", "Remove image", lambda i=image: i.remove())]
actions=[
# Action("run", "Run with command: %s" % query.string,
# lambda i=image, s=query.string: client.containers.run(i, s)),
Action("rmi", "Remove image", lambda i=image: i.remove())
]
),
score=len(query.string)/len(tag)
))
Expand Down

0 comments on commit 2d2c9eb

Please sign in to comment.