This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TODO: inside any container consuming Rancher API | |
# echo "172.17.0.1 local.com" >> /etc/hosts | |
# Run single node | |
docker run -d --name rancher --restart=unless-stopped \ | |
-p 80:80 -p 443:443 \ | |
--privileged \ | |
rancher/rancher:latest | |
# Wait for node to be ready |