From 2a871ef0184da3b021209881dfa48e3cfdaa9d26 Mon Sep 17 00:00:00 2001 From: Gus Eggert Date: Thu, 6 Jan 2022 08:58:33 -0500 Subject: [PATCH] docs: add Snap note about customizing IPFS_PATH (#8584) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index cc609152b..8c279efe0 100644 --- a/README.md +++ b/README.md @@ -166,6 +166,12 @@ With snap, in any of the [supported Linux distributions](https://snapcraft.io/do $ sudo snap install ipfs ``` +The snap sets `IPFS_PATH` to `SNAP_USER_COMMON`, which is usually `~/snap/ipfs/common`. If you want to use `~/.ipfs` instead, you can bind-mount it to `~/snap/ipfs/common` like this: + +```sudo mount --bind ~/.ipfs ~/snap/ipfs/common``` + +If you want something more sophisticated to escape the snap confinement, we recommend using a different method to install `go-ipfs` so that it is not subject to snap confinement. + #### macOS package managers - [MacPorts](#macports)