Skip to content

Commit 1c81acb

Browse files
Add all flag to container search
1 parent 248c346 commit 1c81acb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/docker.clj

+2-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@
128128
(.exists macos) (format "%s/Library/Containers/com.docker.docker/Data/docker.raw.sock" (System/getenv "HOME"))
129129
:else "/var/run/docker.sock"))]
130130
:throw false
131-
:query-params {:filters (json/generate-string m)}}))
131+
:query-params {:filters (json/generate-string m)
132+
:all "true"}}))
132133

133134
(defn list-images [m]
134135
(curl/get

src/jsonrpc/prompt_change_events.clj

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@
5252
(let [change-events-channel (async/chan)
5353
debounced (debounce-by change-events-channel content)]
5454
(doseq [container (docker/containers {:label ["com.docker.desktop.extension=true"
55-
"com.docker.mcp.watch-service=true"]
56-
:name ["com.docker.mcp.watch-service"]})]
57-
(logger/info "shutting down previous vonwig/inotifywait container" (:name container))
55+
"com.docker.mcp.watch-service=true"]})]
56+
(logger/info "shutting down previous vonwig/inotifywait container" container)
5857
(try
5958
(docker/stop-container container)
6059
(docker/kill-container container)
60+
(docker/delete container)
6161
(catch Throwable _
6262
(logger/warn "unable to kill conainer " (:Id container)))))
6363
;; debounce the change event channel

0 commit comments

Comments
 (0)