Installing system containers requires the atomic
command.
Pull from registry into ostree:
# atomic pull --storage ostree $REGISTRY/$IMAGE:$TAG
Or alternatively, pull from local docker:
# atomic pull --storage ostree docker:$IMAGE:$TAG
Note: Currently we recommend using --system-package=no to avoid having rpmbuild create an rpm file during installation. This flag will tell the atomic CLI to fall back to copying files to the host instead.
# atomic install --system --system-package=no --name=$NAME_FOR_SYSTEMD $REGISTRY/$IMAGE:$TAG
Some system containers can take in parameters. These parameters should be listed in
the system containers own README.md file. If for some reason a README.md does not
exist, one can check the defaultValues
in the manifest.json
file for
parameters to override.
# atomic install --system --system-package=no --name=$NAME_FOR_SYSTEMD \
--set=KEY=VAL --set=FOO=BAR $REGISTRY/$IMAGE:$TAG
# systemctl start $NAME_FOR_SYSTEMD
# systemctl stop $NAME_FOR_SYSTEMD
# atomic uninstall $NAME_FOR_SYSTEMD