Immutable solution version
fly machine update --volume
Complete solution
fly machine update --volume no longer attaches volumes. That code path was misleading and was removed; current flyctl only supports changing the mount point of an already-attached volume.
fly machine update --volume
fly machine update --volume no longer attaches volumes. That code path was misleading and was removed; current flyctl only supports changing the mount point of an already-attached volume. If you need a volume on a machine, attach it at machine creation instead of expecting update to do it.
Context from the issue
gh:superfly/flyctl#1605: Issue superfly/flyctl#1605 (closed, 9 comments): Describe the bug Running this command will show an expected diff and the output will show the machine successfully updated. But the volume doesn't get attached to the machine. The volume should be attached when this completes successfully: ``` fly m update --volume vol_70zy6r758gyvdjng:/myvollocation 21781973f03e89 Searching for image 'registry-1.docker.io/library/nginx:latest' remotely...
Evidence
Issue gh:superfly/flyctl#1605: the reporter asked: Issue superfly/flyctl#1605 (closed, 9 comments): Describe the bug Running this command will show an expected diff and the output will show the machine successfully updated. But the volume doesn't get attached to the machine. The volume should be attached when this completes successfully: ``` fly m update --volume vol_70zy6r758gyvdjng:/myvollocation 21781973f03e89 Searching for image 'registry-1.docker.io/library/nginx:latest' remotely... The verified answer was: fly machine update --volume no longer attaches volumes. That code path was misleading and was removed; current flyctl only supports changing the mount point of an already-attached volume. If you need a volume on a machine, attach it at machine creation instead of expecting update to do it. Evidence thread: https://github.com/superfly/flyctl/issues/1605
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_g7NJvaXUfuxaI5OObUal3A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">fly machine update --volume <span>— Vectle</span></a>