aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-03-06 12:53:26 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-03-06 12:53:37 -0500
commite678623a8b01c0a24c601c1fb7fa588f14e2dc0e (patch)
tree90845cb361dc8a7c4d586f75987a287cb37b0234 /include
parent9bb22e9fc9be18ee4829a2e672ea05889dcbb224 (diff)
downloadstasis-e678623a8b01c0a24c601c1fb7fa588f14e2dc0e.tar.gz
docker_save function will pipe output of "docker save" to a compression program if requested
Diffstat (limited to 'include')
-rw-r--r--include/docker.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/docker.h b/include/docker.h
index 3c7dff6..413bf6d 100644
--- a/include/docker.h
+++ b/include/docker.h
@@ -10,6 +10,9 @@
//! Flag for docker buildx
#define OMC_DOCKER_BUILD_X 1 << 2
+//! Compress "docker save"ed images with a compression program
+#define OMC_DOCKER_IMAGE_COMPRESSION "zstd"
+
struct DockerCapabilities {
int podman; //!< Is "docker" really podman?
int build; //!< Is a build plugin available?
@@ -79,6 +82,6 @@ int docker_exec(const char *args, unsigned flags);
*/
int docker_build(const char *dirpath, const char *args, int engine);
int docker_script(const char *image, char *data, unsigned flags);
-int docker_save(const char *image, const char *destdir);
+int docker_save(const char *image, const char *destdir, const char *compression_program);
#endif //OMC_DOCKER_H