web/documents/docker.mdx
Build the image with:
docker build --tag=conky .
If you want the command-line version, use:
docker build --build-arg X11=no --tag=conkycmd .
After building, you can run the graphical version with:
docker run --rm -ti --net=host -e DISPLAY -v ~/.Xauthority:/root/.Xauthority conky
The command-line version is simpler:
docker run --rm -ti conkycmd
To pass options to Conky, specify conky twice: once as the image name and
once as the command. For example:
docker run --rm -ti --net=host -e DISPLAY -v ~/.Xauthority:/root/.Xauthority conky conky --version
This prints the Conky version. Because X is not required for this command, you can also run:
docker run --rm -ti conkycmd conky --version
If you want to experiment with the configuration first, run:
docker run --rm -ti --net=host -e DISPLAY -v ~/.Xauthority:/root/.Xauthority conky bash
Make any changes you want in the configuration.
conky -c configurationfile ; exit
See the Docker documentation for many other ways to use this container.
Disadvantages of using Docker:
Advantages of using Docker: