Dockerfile to build a tools image on CentOS 7
Tools image is intended to be used as Super Privileged Container (SPC) to extend the set of tools provided by Atomic Host. More tips how to use the image can be found at Project Atomic blog.
To build, copy the sources down and call:
# docker build --rm -t <username>/tools .
To run:
-
Not running on Atomic Host? Install the
atomic
tool with:# yum install atomic
-
If you are at Atomic Host, you have
atomic
tool preinstalled and thus you can directly call# atomic run <username>/tools
to get a shell in the tools container, or
# atomic run <username>/tools <command>
to run a specific command. For example:
# atomic run <username>/tools man systemd
atomic
tool uses image labels to figure out the docker run
command. You can check the RUN label by calling
docker inspect -f '{{.Config.Labels.RUN}}' <username>/tools