[CRIU] runc container migration
Adrian Reber
adrian at lisas.de
Sat Oct 8 08:01:24 PDT 2016
On Fri, Oct 07, 2016 at 09:44:45AM -0700, Andrei Vagin wrote:
> On Fri, Oct 07, 2016 at 03:20:35PM +0200, Adrian Reber wrote:
> > Migrating a runc container works pretty good with the following steps:
> >
> > * runc checkpoint <container>
> > * rsync checkpoint
> > * rsync filesystem
> > * runc restore <container> # on the destination host
> >
> > If I am using a read-only filesystem in my runc config.json file I need
> > to mount /tmp as tmpfs. I am also adding other filesystems as tmpfs
> > (like /run) and I am currently not sure how to correctly migrate the
> > content of those tmpfs's.
>
> CRIU will dump and restore content of those tmpfs's, so you should do
> nothing special to migrate them. You need to rsync the root mount and
> content of external mounts.
Ah, so I should have tried it before complaining ;)
Thanks. It works as described, perfect.
Adrian
More information about the CRIU
mailing list