A lightweight, minimal croc
Docker container
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!
To update when a new image is published, run the commands below:
docker pull thecatlady/croc
docker image prune
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 π