Setting up Hermes Agent in Docker on macOS
These are my notes:
Setup
# Install Docker and the Colima container runtime
brew install docker colima
# Start the runtime
colima start
(Note, I had to run: colima stop -f ; colima delete — then run Colima start again)
# create docker image:
docker run -d \\n -v "$(pwd):/workspace" \\n -v ollama_data:/root/.ollama \\n -p 11434:11434 \\n --name ollama-dev \\n ollama/ollama:0.21.0\n
docker exec -it ollama-dev ollama pull glm-5.1:cloud
docker exec -u 0 -it ollama-dev sh -c "apt-get update && apt-get install -y emacs-nox"
docker exec -it \
--env OLLAMA_API_KEY=$OLLAMA_API_KEY \
ollama-dev sh -c 'export PATH="/root/.local/bin:$PATH" && ollama launch hermes --yes'
Bash shell:
docker exec -it ollama-dev bash
# cd root
# ls -a
. .. .bash_history .bashrc .cache .config .hermes .local .npm .ollama .profile .ssh .zshrc
# pwd
/root
Run Hermes Agent
docker exec -it \
--env OLLAMA_API_KEY=$OLLAMA_API_KEY \
ollama-dev sh -c 'export PATH="/root/.local/bin:$PATH" && ollama launch hermes --yes'
Setup Aliases
alias docker_hermes="docker exec -it --env OLLAMA_API_KEY=$OLLAMA_API_KEY ollama-dev sh -c 'export PATH="/root/.local/bin:$PATH" && ollama launch hermes --yes'"
alias docker_bash="docker exec -it ollama-dev bash"
Comments
Post a Comment