Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
5c934cca
Commit
5c934cca
authored
Apr 13, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1068 from mlovci/master
Fix hub.docker.com URL
parents
ef1ceeab
e7115ba7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
README.md
README.md
+9
-3
No files found.
README.md
View file @
5c934cca
...
@@ -91,7 +91,7 @@ Basic proof of 'ipfs working' locally:
...
@@ -91,7 +91,7 @@ Basic proof of 'ipfs working' locally:
### Docker usage
### Docker usage
An ipfs docker image is hosted at
[
hub.docker.com/u/
ipfs
/go-ipfs
](
hub.docker.com/u/
ipfs
/go-ipfs
)
.
An ipfs docker image is hosted at
[
hub.docker.com/u/
jbenet
/go-ipfs
](
hub.docker.com/u/
jbenet
/go-ipfs
)
.
To make files visible inside the container you need to mount a host directory
To make files visible inside the container you need to mount a host directory
with the
`-v`
option to docker. Choose a directory that you want to use to
with the
`-v`
option to docker. Choose a directory that you want to use to
import/export files from ipfs. You should also choose a directory to store
import/export files from ipfs. You should also choose a directory to store
...
@@ -104,10 +104,16 @@ Start a container running ipfs and expose ports 4001, 5001 and 8080:
...
@@ -104,10 +104,16 @@ 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:/root/.go-ipfs -p 8080:8080 -p 4001:4001 -p 5001:5001 jbenet/go-ipfs:latest
docker run -d --name ipfs_host -v $ipfs_staging:/export -v $ipfs_data:/root/.go-ipfs -p 8080:8080 -p 4001:4001 -p 5001:5001 jbenet/go-ipfs:latest
Watch the ipfs log:
docker logs -f ipfs_host
Wait for ipfs to start. ipfs is running when you see:
Wait for ipfs to start. ipfs is running when you see:
Gateway (readonly) server
Gateway (readonly) server
listening on /ip4/0.0.0.0/tcp/8080" in the container logs (`docker logs -f ipfs_host`)
listening on /ip4/0.0.0.0/tcp/8080
(you can now stop watching the log)
Run ipfs commands:
Run ipfs commands:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment