Quick Start
The fastest way to get Rancher running:https://localhost to access Rancher.
Prerequisites
Operating System Requirements
Supported operating systems:- Ubuntu 20.04+, 22.04+
- RHEL/CentOS 7.x, 8.x, 9.x
- SLES 15 SP2+
- Debian 10+, 11+
- Rocky Linux 8+, 9+
- Oracle Linux 7.x, 8.x, 9.x
Hardware Requirements
Minimum requirements:- 2 vCPUs
- 4 GB RAM
- 20 GB disk space
- 4 vCPUs
- 8 GB RAM
- 50 GB disk space
Software Requirements
- Docker 20.10+ or higher
- Internet connectivity (for image downloads and updates)
Installation
curl https://releases.rancher.com/install-docker/20.10.sh | sh
sudo systemctl enable docker
sudo systemctl start docker
sudo docker run -d --restart=unless-stopped \
-p 80:80 -p 443:443 \
--privileged \
rancher/rancher:latest
-d - Run in detached mode (background)--restart=unless-stopped - Automatically restart on failure or system reboot-p 80:80 -p 443:443 - Expose HTTP and HTTPS ports--privileged - Required for Rancher to manage containersrancher/rancher:latest - Use the latest stable versionAdvanced Configuration
Using a Specific Version
Specify a particular Rancher version:Persistent Data Storage
Mount a volume to persist Rancher data:Custom SSL Certificates
Use your own SSL certificates:Private CA Certificates
If using certificates from a private CA:Behind a Proxy
Configure proxy settings:Air-Gapped Installation
For environments without internet access:Container Management
View Logs
View Rancher container logs:Stop Rancher
Stop the Rancher container:Start Rancher
Restart a stopped container:Remove Rancher
Completely remove Rancher:Upgrading Single-Node Installation
sudo docker stop <container_id>
sudo tar czf rancher-backup-$(date +%Y%m%d).tar.gz /var/lib/rancher
sudo docker start <container_id>
Limitations
Single-node Docker installations have several limitations:- No high availability - Single point of failure
- No automatic failover - Downtime during host failures
- Limited scalability - Cannot scale beyond one node
- Manual upgrades - No rolling updates
- No Kubernetes integration - Does not leverage Kubernetes features
- Not production-ready - Not covered under Rancher Support SLA
For production use, migrate to a Kubernetes-based installation with high availability.
Resource Requirements by Use Case
Development/Testing
- Managing 1-5 clusters
- 2 vCPUs, 4 GB RAM, 20 GB disk
Demo/POC
- Managing 5-15 clusters
- 4 vCPUs, 8 GB RAM, 50 GB disk
Small Production (Not Recommended)
- Managing 15-50 clusters
- 8 vCPUs, 16 GB RAM, 100 GB disk
- Consider migrating to HA deployment
Troubleshooting
Container Won’t Start
Check logs for errors:- Port conflicts (80/443 already in use)
- Insufficient permissions
- Docker daemon not running
Cannot Access UI
Verify container is running:Performance Issues
Check container resource usage:Best Practices
- Use persistent volumes (
-v /opt/rancher:/var/lib/rancher) to preserve data - Set
--restart=unless-stoppedto survive reboots - Regularly backup the
/var/lib/rancherdirectory - Pin to a specific version tag for reproducibility
- Use SSL certificates from a trusted CA for production-like testing
- Monitor resource usage and scale host resources as needed
- Test upgrades in a separate environment first
Next Steps
- Import existing Kubernetes clusters
- Create new downstream clusters
- Explore Rancher features and capabilities
- Plan migration to high availability deployment for production use
- Review backup and restore procedures