[systemd-devel] Creating containers from local .raw or tar images
Lennart Poettering
lennart at poettering.net
Mon Mar 2 15:24:10 PST 2015
On Mon, 02.03.15 15:45, Erik Johnson (erik at saltstack.com) wrote:
> The machinectl pull-* commands allow you to download container images,
> but no such option (yet) exists for deploying from an image or tar file
> on your local filesystem.
>
> Are there plans to expand the machinectl pull-* commands to support
> either absolute file paths or file:/// URLs?
>
> My current dirty hack is to run an nginx instance that listens only on
> localhost, and pull from http://localhost/path/to/container.tar.gz, but
> this is far from ideal.
You can simply place your raw or tar images in /var/lib/machines/
directly.
But yeah, pretty high on my list is to add "machinectl import-raw",
"machinectl import-tar", "machinectl export-raw", "machinectl
export-tar", for doing this in a nice way.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list