Skip to content

Commit 4312656

Browse files
Run tools with the docker.sock
1 parent 8ebb3f2 commit 4312656

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

prompts/examples/dood.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
tools:
3+
- name: docker
4+
description: run any docker command with arguments
5+
parameters:
6+
type: object
7+
properties:
8+
args:
9+
type: string
10+
description: arguments to pass to the docker CLI
11+
container:
12+
image: docker:cli
13+
command:
14+
- "{{args|safe}}"
15+
---
16+
17+
# prompt user
18+
19+
1. run the docker command to figure out which images have been pulled
20+

src/docker.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@
118118
(when host-dir {:HostConfig
119119
{:Binds
120120
(concat [(format "%s:/project:rw" host-dir)
121-
"docker-lsp:/docker-lsp"]
121+
"docker-lsp:/docker-lsp"
122+
"/var/run/docker.sock:/var/run/docker.sock"]
122123
(when thread-id [(format "%s:/thread:rw" thread-id)]))}
123124
:WorkingDir "/project"})
124125
(when entrypoint {:Entrypoint entrypoint})

0 commit comments

Comments
 (0)