import: add new minimal tool "systemd-import" for pulling down foreign containers and install them locally

System Internals / systemd - Lennart Poettering [poettering.net] - 18 December 2014 19:08 UTC

This adds a simply but powerful tool for downloading container images from the most popular container solution used today. Use it like this:

# systemd-import pull-dck mattdm/fedora # systemd-nspawn -M fedora

This will donwload the layers for "mattdm/fedora", and make them available locally as /var/lib/container/fedora.

The tool is pretty complete, as long as it's only about pulling down images, or updating them. Pushing or searching is not supported yet.

7264832 import: add new minimal tool "systemd-import" for pulling down foreign containers and install them locally
.gitignore | 1 +
Makefile.am | 26 ++
src/import/Makefile | 1 +
src/import/aufs-util.c | 73 +++
src/import/aufs-util.h | 24 +
src/import/curl-util.c | 415 +++++++++++++++++
src/import/curl-util.h | 56 +++
src/import/import-dck.c | 1156 +++++++++++++++++++++++++++++++++++++++++++++++
src/import/import-dck.h | 39 ++
src/import/import.c | 213 +++++++++
src/shared/util.h | 2 +
11 files changed, 2006 insertions(+)

Upstream: github.com


  • Share