Rapid-fire: how do you connect an inbound agent with Docker?
BeginnerConceptBest practices & rapid-fire commands
Answer
Create the node in Jenkins (launch method: inbound), copy the secret, then:
docker run -d --name agent-1 --init jenkins/inbound-agent:latest-jdk21 \
-url https://jenkins.example.com/ -webSocket \
-secret 3f2a... -name agent-1 -workDir /home/jenkins/agent
With WebSocket only port 443/8080 is needed. Pin the inbound-agent tag in production.
More on Best practices & rapid-fire commands
What are the top Jenkinsfile best practices you follow?IntermediateWhat are the top controller best practices?IntermediateRapid-fire: how do you get the initial admin password?BeginnerRapid-fire: how do you list installed plugins and their versions?BeginnerRapid-fire: how do you trigger a parameterized build with curl and follow it?BeginnerRapid-fire: how do you run the controller in Docker for a quick test?Beginner