This shows you the differences between two versions of the page.
| — |
rdm-dev:docker:tag [2026/02/25 08:43] (current) torkhov created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | Docker Tagging for Instant Rollbacks | ||
| + | A Docker Tag is essentially an " | ||
| + | 1. The " | ||
| + | |||
| + | Before you pull a new update (which usually overwrites the :latest tag), manually " | ||
| + | |||
| + | Command: | ||
| + | Bash | ||
| + | |||
| + | docker tag my-app: | ||
| + | |||
| + | Result: You now have two tags pointing to the same Image ID. When you pull a new :latest, your confirmed-working tag stays pointed at the old, stable code. | ||
| + | |||
| + | 2. The Instant Rollback | ||
| + | |||
| + | If the new update fails, you don't need to download anything or check logs. You simply re-deploy using your bookmark. | ||
| + | |||
| + | Via Docker Compose: | ||
| + | Change your image: line and restart. | ||
| + | YAML | ||
| + | |||
| + | services: | ||
| + | web: | ||
| + | image: my-app: | ||