mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-27 07:57:30 +08:00
Merge pull request #1755 from sroerick/patch-1
added docker file permission instructions.
This commit is contained in:
@ -155,6 +155,11 @@ ipfs files that will persist when you restart the container.
|
||||
export ipfs_staging=</absolute/path/to/somewhere/>
|
||||
export ipfs_data=</absolute/path/to/somewhere_else/>
|
||||
|
||||
Make sure docker can access these folders:
|
||||
|
||||
sudo chmod -R 777 /absolute/path/to/somewhere/
|
||||
sudo chmod -R 777 /absolute/path/to/somewhere_else/
|
||||
|
||||
Start a container running ipfs and expose ports 4001, 5001 and 8080:
|
||||
|
||||
docker run -d --name ipfs_host -v $ipfs_staging:/export -v $ipfs_data:/data/ipfs -p 8080:8080 -p 4001:4001 -p 5001:5001 jbenet/go-ipfs:latest
|
||||
|
Reference in New Issue
Block a user