Skip to content

TheCatLady/docker-croc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

croc 🐊

Image Size Last Commit Build Status Become a GitHub Sponsor

A lightweight, minimal croc Docker container

Usage

Docker images are available from both GitHub Container Registry (GHCR) and Docker Hub.

If you would prefer to pull from GHCR, simply replace thecatlady/croc with ghcr.io/thecatlady/croc in the directions below.

Add the following fuction definition to ~/.profile (create the file if it doesn't exist):

function croc() {
    docker run -it --rm -w "$(pwd)" \
        -v "$(pwd):$(pwd)" \
        thecatlady/croc "$@"
}

Then, run the following command to refresh your Bash profile settings:

source ~/.profile

You will then be able to issue croc commands as if it were installed natively!

Updating

To update when a new image is published, run the commands below:

docker pull thecatlady/croc
docker image prune

How to Contribute

Show your support by starring this project! 🌟 Pull requests, bug reports, and feature requests are also welcome!

You can also support me by becoming a GitHub sponsor or making a one-time donation πŸ’–