docker run -d -p 4440:4440 -e EXTERNAL_SERVER_URL=http://109.105.4.65:4440 -v/root/rundeck:/var/rundeck --name rundeck -t registry.bst-1.cns.bstjpc.com:5000/jordan/rundeck:latest

默认用户 admin/admin

查看rundeck ssh public key:

# docker exec -ti $(docker ps |grep rundeck |awk '{print $1}') cat /var/lib/rundeck/.ssh/id_rsa.pub

# cd /root/rundeck/projects/mhc-test/etc

# vi resources.xml

<?xml version="1.0" encoding="UTF-8"?>

<project>
  <node name="localhost" description="Rundeck server node" tags="" hostname="localhost" osArch="amd64" osFamily="unix" osName="Linux" osVersion="3.10.0-514.21.1.el7.x86_64" username="rundeck"/>
  <node name="mhc" description="Rundeck server node" tags="" hostname="109.105.4.65" osArch="amd64" osFamily="unix" osName="Linux" osVersion="3.10.0-514.21.1.el7.x86_64" username="rundeck"/>
  <node name="node1" description="Rundeck server node" tags="" hostname="109.105.30.146" osArch="amd64" osFamily="unix" osName="Linux" osVersion="3.10.0-514.21.1.el7.x86_64" username="rundeck"/>
</project>

05-20 21:52