mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Handle docker start inside overlayfs
Raspberry Pi allows to start system under overlayfs. Docker is successfully fallbacks to fuse-overlay but not starting because of the `Error starting daemon: rename /var/lib/docker/runtimes /var/lib/docker/runtimes-old: invalid cross-device link` error It's happening because `rename` is not supported by overlayfs. After manually removing directory `runtimes` docker starts and works successfully Signed-off-by: Illia Antypenko <ilya@antipenko.pp.ua>
This commit is contained in:
@@ -69,7 +69,9 @@ func (daemon *Daemon) initRuntimes(runtimes map[string]types.Runtime) (err error
|
||||
}
|
||||
|
||||
if err = os.Rename(runtimeDir, runtimeDir+"-old"); err != nil {
|
||||
return
|
||||
if err = os.RemoveAll(runtimeDir); err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
if err = os.Rename(tmpDir, runtimeDir); err != nil {
|
||||
err = errors.Wrap(err, "failed to setup runtimes dir, new containers may not start")
|
||||
|
||||
Reference in New Issue
Block a user