diff options
author | Aditya R <arajan@redhat.com> | 2022-02-22 22:10:34 +0530 |
---|---|---|
committer | Aditya R <arajan@redhat.com> | 2022-02-23 17:38:28 +0530 |
commit | fbbcb957c710ab817c969a8dc3ff3c46619604e2 (patch) | |
tree | 33971ff9377ee3cbf455ebe4c915722d3c3438bc /pkg/api/server/register_images.go | |
parent | 0cfb5d7e75507783e463e0df645e873e5a77bbfa (diff) | |
download | podman-fbbcb957c710ab817c969a8dc3ff3c46619604e2.tar.gz podman-fbbcb957c710ab817c969a8dc3ff3c46619604e2.tar.bz2 podman-fbbcb957c710ab817c969a8dc3ff3c46619604e2.zip |
container-commit: support --squash to squash layers into one
Allow users to commit containers into a single layer.
Usage
```bash
podman container commit --squash <name>
```
Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'pkg/api/server/register_images.go')
-rw-r--r-- | pkg/api/server/register_images.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go index d7bc17093..017310f12 100644 --- a/pkg/api/server/register_images.go +++ b/pkg/api/server/register_images.go @@ -460,6 +460,10 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // name: changes // type: string // description: instructions to apply while committing in Dockerfile format + // - in: query + // name: squash + // type: boolean + // description: squash newly built layers into a single new layer // produces: // - application/json // responses: |