Is it possible to install or run multiple copies of a snap package, each with it's own isolated copy of app config / data?
1 Answer
It is possible to do parallel installs from version 2.36 of snapd (snap --version
), which includes the version on Ubuntu 18.10.
# Enable parallel instances
sudo snap set system experimental.parallel-instances=true
# First instance - normal install (not required)
sudo snap install myapp
# Second or more instances
sudo snap install myapp myapp_two
sudo snap install myapp myapp_three
Not that the instance name must match <snap-name>_<instance-key>
- it can't have an arbitrary name.
Documentation: https://forum.snapcraft.io/t/parallel-installs/7679
snapcraft.yaml
then you may be able to do it now by renaming the snap, snapping by setting up LXD then runningSNAPCRAFT_CONTAINER_BUILDS=1 snapcraft
(notsnapcraft cleanbuild
), then installing the snap with--dangerous
.