0

I would like to install on my local computer two systems, eg.: Ubuntu and Arch.

I know that all libraries, system settings, user settings should be distinct for these systems.

But in case of:

  • docker (/var/lib/docker/overlay2)
  • snap (/var/lib/snapd/snaps)

I do not suspect differences and want to mount these directories to the same disc space for both systems.

Should it works stable, or should I suspect problems from this?

Daniel
  • 387

1 Answers1

1

It is possible to share the folders between the two distributions.

In case of the docker daemon, the /var/lib/docker folder can be "moved" to a different location by modifying the /etc/docker/daemon.json configuration file.

The same is possible for snapd.

However, the versions of dockerd and snapd must be identical!. If the version of dockerd or snapd are different, the "older" version will fail.

Simon Sudler
  • 3,931
  • 3
  • 21
  • 34