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
{{ message }}
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+50-8Lines changed: 50 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,9 +145,47 @@ You can then run using that configuration file like so:
145
145
$ docker-app render -f prod.yml
146
146
```
147
147
148
-
149
148
More examples are available in the [examples](examples) directory.
150
149
150
+
## CNAB
151
+
152
+
Under the hood `docker-app` produces a CNAB bundle (a docker invocation image and a `bundle.json`) from an Application Package, but is also a generic CNAB client.
153
+
CNAB proposes four actions, and docker-app adds them as commands:
154
+
-`install`
155
+
-`upgrade`
156
+
-`status`
157
+
-`uninstall`
158
+
159
+
**Note**: These four commands needs a Docker Context to know which daemon or orchestrator to target.
Pre-built binaries are available on [GitHub releases](https://github.com/docker/app/releases) for Windows, Linux and macOS.
@@ -158,7 +196,7 @@ tar xf docker-app-linux.tar.gz
158
196
cp docker-app-linux /usr/local/bin/docker-app
159
197
```
160
198
161
-
**Note:** To use Application Packages as images (i.e.: `save`, `push`, or `deploy` when package is not present locally) on Windows, one must be in Linux container mode.
199
+
**Note:** To use Application Packages as images (i.e.: `save`, `push`, or `install` when package is not present locally) on Windows, one must be in Linux container mode.
162
200
163
201
## Single file or directory representation
164
202
@@ -172,7 +210,7 @@ Note that you cannot store attachments in the single file format. If you want to
172
210
173
211
## Attachments (Storing additional files)
174
212
175
-
If you want to store additional files in the application package, such as `prod.yml`, `test.yml` or other config files, use the directory format and simply place these files inside the *.dockerapp/ directory. These will be bundled into the package when using `docker-app push`
213
+
If you want to store additional files in the application package, such as `prod.yml`, `test.yml` or other config files, use the directory format and simply place these files inside the *.dockerapp/ directory. These will be bundled into the package when using `docker-app push`.
-c, --context string context to use to connect to the daemon (overrides host flag, DOCKER_HOST env var and default context set with "docker context use")
256
+
-c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
219
257
-D, --debug Enable debug mode
220
258
-H, --host list Daemon socket(s) to connect to
221
259
-l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
222
260
--tls Use TLS; implied by --tlsverify
223
-
--tlscacert string Trust certs signed only by this CA (default "/Users/chris/.docker/ca.pem")
224
-
--tlscert string Path to TLS certificate file (default "/Users/chris/.docker/cert.pem")
225
-
--tlskey string Path to TLS key file (default "/Users/chris/.docker/key.pem")
261
+
--tlscacert string Trust certs signed only by this CA (default "/Users/silvin/.docker/ca.pem")
262
+
--tlscert string Path to TLS certificate file (default "/Users/silvin/.docker/cert.pem")
263
+
--tlskey string Path to TLS key file (default "/Users/silvin/.docker/key.pem")
226
264
--tlsverify Use TLS and verify the remote
227
265
-v, --version Print version information
228
266
229
267
Commands:
268
+
bundle Create a CNAB invocation image and bundle.json for the application.
230
269
completion Generates completion scripts for the specified shell (bash or zsh)
231
-
deploy Deploy or update an application
232
270
init Start building a Docker application
233
271
inspect Shows metadata, parameters and a summary of the compose file for a given application
272
+
install Install an application
234
273
merge Merge a multi-file application into a single file
235
274
push Push the application to a registry
236
275
render Render the Compose file for the application
237
276
split Split a single-file application into multiple files
277
+
status Get an application status
278
+
uninstall Uninstall an application
279
+
upgrade Upgrade an installed application
238
280
validate Checks the rendered application is syntactically correct
0 commit comments