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
38269700
Commit
38269700
authored
Feb 22, 2015
by
Knut Ahlers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed 4002/udp for now, fixed start commands
parent
0eef12a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Dockerfile
Dockerfile
+4
-3
No files found.
Dockerfile
View file @
38269700
...
...
@@ -7,10 +7,11 @@ RUN cd /go/src/github.com/jbenet/go-ipfs/cmd/ipfs && go install
RUN
echo
-n
"#!/bin/bash
\n
ipfs init
\n
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
\n
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
\n
ipfs daemon"
>
/usr/local/bin/start_ipfs
&&
\
chmod
755 /usr/local/bin/start_ipfs
EXPOSE
4001 5001 4002/udp 8080
EXPOSE
4001 5001 8080
# 4001 = Swarm, 5001 = API, 8080 = HTTP transport
ENTRYPOINT
["/usr/local/bin/start_ipfs"]
# build: docker build -t go-ipfs .
# run: docker run -p 4001:4001 -p 5001:5001 go-ipfs:latest
daemon --init
# run: docker run -p
4002:4002/udp
-p 4001:4001 -p 5001:5001 go-ipfs:latest
daemon --init
# run: docker run -p 4001:4001 -p 5001:5001 go-ipfs:latest
# run: docker run -p
8080:8080
-p 4001:4001 -p 5001:5001 go-ipfs:latest
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