oci2sysext

command module
v0.0.0-...-53f0782 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

oci2sysext

oci2sysext builds a systemd-extension from a container image.

Installation

From source
make
# should produce build/oci2sysext

Usage


## Create an image, and add something to it
docker build -t myimage:latest -<<EOF
FROM alpine
RUN apk add curl
EOF

## Save the image
docker save myimage:latest -o myimage.tar

## Create a systemd-extension from the image
## oci2sysext <image-tar-path> <sysext-name>
oci2sysext myimage.tar myimage

## Install the systemd-extension
mv myimage.raw /var/lib/extensions

# or symlinking
# mkdir extensions
# mv myimage.raw extensions/
# sudo ln -s $PWD/extensions /var/lib/extensions/

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL