Moving Instance with Docker - Operation Not Permitted

I spoke too soon. Running Alpine does not fix the problem.

I migrated my Debian instances over to Alpine thinking it would fix this move issue. I need to upgrade the ram on one of my hosts this weekend so I need to move instances off that host. I just tried moving one of them and I’m getting the failed: Operation not permitted (1) error again.

Quite frustrating. Ugh. I guess I’ll just stop the instances running on that host and shut it down and hope the ram upgrade doesn’t take long.

EDIT:

Many many thanks to this post from last year! This issue has to do with the Docker storage driver. That poster was moving from a host system with btrfs to zfs which I’m not doing. AFAIK both my systems should be using the same underlying filesystem type. The hosts are basic Debian 12 installs.

I followed the directions there and changed the Docker storage driver to vfs and started up all the containers. I then stopped the instance and successfully performed the move!

Here’s hoping this workaround continues to work.

EDIT 2: vfs is probably not the best option for a storage driver. So far it seems really slow and takes ages to move an instance.

The Docker storage driver I was using before that was failing is:

 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: false
  userxattr: true

Both host systems are using ext4.