atomic-run (1) - Linux Manuals
atomic-run: Execute container image run method
NAME
atomic-run - Execute container image run method
SYNOPSIS
atomic run [-h|--help] [--display] [-n][--name[=NAME]] [--spc] [--storage] [--quiet] IMAGE [COMMAND] [ARG...]
DESCRIPTION
atomic run attempts to start an existing container or run a container from an image, first reading the LABEL RUN field in the container IMAGE.
If the container image has a LABEL RUN instruction like the following:
LABEL RUN /usr/bin/docker run -t -i --rm \${OPT1} --cap-add=SYS_ADMIN --net=host -v \${LOGDIR}:/var/log -v \${DATADIR}:/var/lib --name \${NAME} \${IMAGE} \${OPT2} run.sh \${OPT3}
atomic run will run the following:
/usr/bin/docker run -t -i --rm --cap-add=SYS_ADMIN --net=host -v ${LOGDIR}:/var/log -v ${DATADIR}:/var/lib --name ${NAME} ${IMAGE} run.sh
If this field does not exist, atomic run defaults to the following:
/usr/bin/docker run -t -i --rm -v ${LOGDIR}:/var/log -v ${DATADIR}:/var/lib --name ${NAME} ${IMAGE}
These defaults are suggested values for your container images.
atomic run will set the following environment variables for use in the command:
NAME
IMAGE
OPT1, OPT2, OPT3
SUDO_UID
SUDO_GID
RUN_OPTS
-h --help
--display
--n --name=""
--spc
/usr/bin/docker run -t -i --rm --privileged -v /:/host -v /run:/run --net=host --ipc=host --pid=host -e HOST=/host -e NAME=${NAME} -e IMAGE=${IMAGE} --name ${NAME} ${IMAGE}
-storage
--quiet
January 2015, Originally compiled by Daniel Walsh (dwalsh at redhat dot com)
July 2015, edited by Sally O'Malley (somalley at redhat dot com)
OPTIONS:
Use this name for creating run content for the container.
NAME will default to the IMAGENAME if it is not specified.
Allows you to override the default definition for the storage backend where your image will reside if pulled.
HISTORY