Removed 4002/udp for now, fixed start commands
Knut Ahlers committed
Feb 22, 2015 at 23:34 UTC
382697004b8db81741fbf6851eecd76b0bac1be4
1 file changed
+4
-3
Dockerfile
+4
-3
@@ -7,10 +7,11 @@ RUN cd /go/src/github.com/jbenet/go-ipfs/cmd/ipfs && go install
7
RUN echo -n "#!/bin/bash\nipfs init\nipfs config Addresses.API /ip4/0.0.0.0/tcp/5001\nipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080\nipfs daemon" > /usr/local/bin/start_ipfs && \
8
chmod 755 /usr/local/bin/start_ipfs
9
10
-EXPOSE 4001 5001 4002/udp 8080
10
+EXPOSE 4001 5001 8080
11
+# 4001 = Swarm, 5001 = API, 8080 = HTTP transport
12
13
ENTRYPOINT ["/usr/local/bin/start_ipfs"]
14
15
# build: docker build -t go-ipfs .
15
-# run: docker run -p 4001:4001 -p 5001:5001 go-ipfs:latest daemon --init
16
-# run: docker run -p 4002:4002/udp -p 4001:4001 -p 5001:5001 go-ipfs:latest daemon --init
16
+# run: docker run -p 4001:4001 -p 5001:5001 go-ipfs:latest
17
+# run: docker run -p 8080:8080 -p 4001:4001 -p 5001:5001 go-ipfs:latest