Versions: [1.84, 1.88, 1.90]


Download        : docker pull
Compressed Size : 48MB


Count, or compute differences of, physical lines of source code in the given files (may be archives such as compressed tarballs or zip files) and/or recursively below the given directories.


Pull (Download)

To download the latest version of cloc run,

docker pull

or to download a specific version of cloc run,

docker pull


To run the container as an application run,

docker run --rm cloc --version

or to run the container in an interactive session run,

docker run -it --rm bash

Mounting volumes between the container and your machine

To access files from your machine within the cloc container you’ll have to mount them using the -v external/path:internal/path option.

For example,

docker run -v ~/Documents/Data:/Data cloc /Data/myData.csv

which will mount the ~/Documents/Data directory on your computer to the /Data directory within the container.


If you’re looking to use this container in an HPC environment we recommend using Singularity-HPC to use the container just as any other module on the cluster. Check out the SHPC cloc container here.