Repository navigation
Question: How to Add New Environment in V3? #5178
Answered
by
CaiqueRechi
nthskyradiated
asked this question in
Q&A
Answered by
CaiqueRechi
Nov 30, 2026
Replies: 1 comment 1 reply
|
The new agent is most likely exiting on startup because of In v3.1.1,
That check runs during bootstrap, so the container stops before it ever connects to the manager, and the environment stays pending. What worked for me in the v3 format (same as the snippet the manager generates): services:
arcane-agent:
image: ghcr.io/getarcaneapp/agent:latest
container_name: arcane-agent
restart: unless-stopped
environment:
- ARCANE_AGENT=true
- ARCANE_AGENT_TRANSPORT=auto
- ARCANE_AGENT_TOKEN=<token from the new environment>
- ARCANE_MANAGER_API_URL=https://your-manager
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- arcane-data:/app/data
volumes:
arcane-data:A few notes:
|
1 reply
Answer selected by
nthskyradiated
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

The new agent is most likely exiting on startup because of
ARCANE_AGENT_MODE=true.In v3.1.1,
Config.Validate()returns an error whenARCANE_AGENT_MODE(orAGENT_MODE) is set butARCANE_AGENTis not (config.go):That check runs during bootstrap, so the container stops before it ever connects to the manager, and the environment stays pending.
docker logs arcane-agenton the new host should show that message.What worked for me in the v3 format (same as the snippet the manager generates):