Skip to content

Instantly share code, notes, and snippets.

@rrmistry
Last active December 30, 2024 16:33
Show Gist options
  • Save rrmistry/f415f21c5bdd73647fb0ad509eeda2ff to your computer and use it in GitHub Desktop.
Save rrmistry/f415f21c5bdd73647fb0ad509eeda2ff to your computer and use it in GitHub Desktop.
Docker based CLIs
# Run git as a docker container
docker run -it --rm --volume "${HOME}:/root" --volume "${PWD}:/git" --pull "always" "alpine/git" "clone" $1
# Run N8n locally as a docker container
docker run --name "n8n" -it --rm --detach --volume "${HOME}/.n8n:/home/node/.n8n" --publish "5678:5678" --pull "always" "docker.n8n.io/n8nio/n8n"
# Run ollama server locally as a docker container
docker run --name "ollama" --detach --volume "${HOME}/.ollama:/root/.ollama" --publish "11434:11434" --pull "always" "ollama/ollama"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment