mirror of https://github.com/docker/docs.git
Add documentation on ACI prune (#11676)
* Add documentation on ACI prune Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com> * Minor style updates Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
This commit is contained in:
parent
b0eb7bd621
commit
449b9d216f
|
@ -155,6 +155,21 @@ Name resolution between containers is achieved by writing service names in the `
|
|||
>
|
||||
> The current Docker Azure integration does not allow fetching a combined log stream from all the containers that make up the Compose application.
|
||||
|
||||
## Releasing resources
|
||||
|
||||
Single containers and Compose applications can be removed from ACI with
|
||||
the `docker prune` command. The `docker prune` command removes deployments
|
||||
that not currently running. To remove running depoyments, you can specify
|
||||
`--force`. The `--dry-run` option lists deployments that are planned for
|
||||
removal, but it doesn't actually remove them.
|
||||
|
||||
```console
|
||||
$ ./bin/docker --context acicontext prune --dry-run --force
|
||||
Resources that would be deleted:
|
||||
my-application
|
||||
Total CPUs reclaimed: 2.01, total memory reclaimed: 2.30 GB
|
||||
```
|
||||
|
||||
## Exposing ports
|
||||
|
||||
Single containers and Compose applications can optionally expose ports. For single containers, this is done using the `--publish` (`-p`) flag of the `docker run` command and for Compose applications, you must specify exposed ports in the Compose file service definition.
|
||||
|
|
Loading…
Reference in New Issue