You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-12Lines changed: 31 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
# D-Force (d4s)
7
7
8
-
D4S (pronounced *D-Force*) brings the power and ergonomics of K9s to the local Docker ecosystem. Stop wrestling with verbose CLI commands and start managing your containers like a pro.
8
+
D4S (pronounced *D-Force*) brings the power and ergonomics of [K9s](https://github.com/derailed/k9s) to the local Docker ecosystem. Stop wrestling with verbose CLI commands and start managing your containers like a pro.
*After running this, either restart your terminal or run `source ~/.zshrc` (or `source ~/.bashrc` for Bash) to enable the alias.*
77
77
</details>
78
78
79
+
<details>
80
+
<summary><b>Go Install</b></summary>
81
+
82
+
>Requirement: Go 1.25+
83
+
84
+
```bash
85
+
go install github.com/jr-k/d4s@latest
86
+
```
87
+
88
+
The binary lands in `$(go env GOBIN)` (or `$(go env GOPATH)/bin`). Make sure that directory is on your `PATH`.
89
+
90
+
To upgrade later, just re-run the same command, or use [`gup`](https://github.com/nao1215/gup) to bulk-update all your `go install`-managed binaries:
91
+
92
+
```bash
93
+
gup update
94
+
```
95
+
</details>
96
+
79
97
<details>
80
98
<summary><b>From Source</b></summary>
81
99
82
-
>Requirement: Go 1.21+
100
+
>Requirement: Go 1.25+
83
101
```bash
84
102
git clone https://github.com/jr-k/d4s.git
85
103
cd d4s
86
-
go build -o d4s cmd/d4s/main.go
104
+
go build -o d4s .
87
105
sudo mv d4s ~/.local/bin/
88
106
```
89
107
@@ -93,7 +111,7 @@ mv d4s ~/.local/bin/
93
111
d4s
94
112
95
113
# Quickly run from source
96
-
go run cmd/d4s/main.go
114
+
go run .
97
115
```
98
116
</details>
99
117
@@ -147,6 +165,7 @@ sudo zypper install d4s
147
165
```
148
166
</details>
149
167
168
+
150
169
> ### Windows
151
170
152
171
<details>
@@ -180,7 +199,7 @@ When deciding which Docker context to use, D4S applies the following precedence:
180
199
4.`d4s.defaultContext` from `config.yaml`
181
200
5. Docker CLI's own current/default context behavior
182
201
183
-
If you select the literal `default` context from `shift-t`, D4S uses Docker's normal default context resolution rather than a named custom context.
202
+
If you select the literal `default` context from `shift-o`, D4S uses Docker's normal default context resolution rather than a named custom context.
184
203
185
204
All settings are optional and have sensible defaults. Below is a fully documented example:
186
205
@@ -194,7 +213,7 @@ d4s:
194
213
readOnly: false
195
214
# Default Docker context for d4s when --context, DOCKER_HOST, and DOCKER_CONTEXT are not set. Default: ""
@@ -284,11 +303,11 @@ Port-forwards expose a remote container port on your local machine (`localhost:<
284
303
285
304
## Command Palette
286
305
287
-
Use `shift-t` to open the Docker context picker, switch the current d4s session to a different context, and save that selection as the default context for future d4s launches.
306
+
Use `shift-o` to open the Docker context picker, switch the current d4s session to a different context, and save that selection as the default context for future d4s launches.
288
307
289
308
If `DOCKER_HOST` or `DOCKER_CONTEXT` is set in your shell, those environment variables still override the saved D4S default for that launch.
290
309
291
-
In a container log view opened with `shift-d` to export the full log of that container to `~/.config/d4s/logs/<container-id>.<timestamp>.log` (or the equivalent `$XDG_CONFIG_HOME/d4s/logs/...` path).
310
+
In a container log view, press `ctrl-s` to save the full log of that container to `~/.config/d4s/logs/<container>.<timestamp>.log` (or the equivalent `$XDG_CONFIG_HOME/d4s/logs/...` path).
292
311
293
312
## Contributing
294
313
@@ -300,6 +319,6 @@ There's still plenty to do! Take a look at the [contributing guide](CONTRIBUTING
0 commit comments