atomic-uninstall (1) - Linux Manuals
atomic-uninstall: Remove/Uninstall container/container image from system
NAME
atomic-uninstall - Remove/Uninstall container/container image from system
SYNOPSIS
atomic uninstall [-f][--force] [-h|--help] [-n][--name[=NAME]] IMAGE [ARG...]
DESCRIPTION
atomic uninstall attempts to read the LABEL UNINSTALL field in the container IMAGE, if this field does not exist atomic uninstall will just uninstall the image.
If the container image has a LABEL UNINSTALL instruction like the following:
LABEL UNINSTALL /usr/bin/docker run -t -i --rm \${OPT1} --privileged -v /:/host --net=host --ipc=host --pid=host -e HOST=/host -e NAME=${NAME} -e IMAGE=${IMAGE} -e CONFDIR=\/etc/${NAME} -e LOGDIR=/var/log/\${NAME} -e DATADIR=/var/lib/\${NAME} ${IMAGE} \${OPT2} /bin/uninstall.sh \${OPT3}
atomic uninstall will set the following environment variables for use in the command:
NAME
IMAGE
OPT1, OPT2, OPT3
SUDO_UID
SUDO_GID
Any additional arguments will be appended to the command.
-f --force
-h --help
-n --name=""
January 2015, Originally compiled by Daniel Walsh (dwalsh at redhat dot com)
OPTIONS:
If name is specified atomic uninstall will uninstall the named container from the system, otherwise it will uninstall the container images.
HISTORY