Rollbacks
Rollbacks let you quickly revert to a previous working version if something goes wrong.
How Rollbacks Work
Each successful build creates a tagged image in the registry:
registry:5000/myapp:abc123 # Build 1registry:5000/myapp:def456 # Build 2registry:5000/myapp:ghi789 # Build 3 (current)Rolling back switches to an older image without rebuilding.
Performing a Rollback
- Go to the deployment detail
- Click Builds to see build history
- Find the build you want to restore
- Click Rollback to this build
- Confirm the rollback
Rollback Process
When you rollback:
- Stop current container
- Start new container from old image
- Health check verifies it’s working
- Complete — old version is live
This typically takes 10-30 seconds.
Zero-Downtime Rollbacks
Rollbacks aim to minimize downtime:
- Old container keeps running initially
- New container starts from old image
- Traffic switches when new container is healthy
- Old container stops
Build History
The builds list shows:
| Column | Description |
|---|---|
| Status | Success, failed, or rolled back |
| Commit | Git commit SHA (for git deploys) |
| Date | When the build ran |
| Duration | How long the build took |
Rollback Limits
You can rollback to any build where:
- The image still exists in the registry
- The build was successful
Emergency Rollbacks
If your deployment is broken:
- Don’t panic
- Go directly to builds list
- Find last known working build
- Click rollback immediately
The previous version will be restored quickly.
After Rolling Back
After a rollback:
- Investigate what went wrong
- Fix the issue in your code
- Deploy again
- Verify the fix works
Preventing Bad Deploys
To reduce the need for rollbacks:
- Test locally before deploying
- Use staging environment first
- Review changes before deploying to production
- Monitor after each deploy
Rollback vs Redeploy
| Action | What Happens |
|---|---|
| Rollback | Uses existing image, no build |
| Redeploy | Builds new image from current source |
Use rollback for:
- Emergency reverts
- Known working versions
- Quick recovery
Use redeploy for:
- Applying new changes
- Rebuilding after config changes
- Fresh builds
Rollback Troubleshooting
”Image Not Found”
The image may have been cleaned from the registry.
Solution: Redeploy from source instead.
”Rollback Failed”
Check the container logs for startup errors.
Solution: The old version may have issues. Try a different build.
”Same Problems After Rollback”
The issue might be:
- In the database (migrations)
- In environment variables
- In external services
Solution: Check non-code dependencies.