mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-26 07:28:20 +08:00
Removed 4002/udp for now, fixed start commands
This commit is contained in:
@ -7,10 +7,11 @@ RUN cd /go/src/github.com/jbenet/go-ipfs/cmd/ipfs && go install
|
|||||||
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 && \
|
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 && \
|
||||||
chmod 755 /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"]
|
ENTRYPOINT ["/usr/local/bin/start_ipfs"]
|
||||||
|
|
||||||
# build: docker build -t go-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 4001:4001 -p 5001:5001 go-ipfs:latest
|
||||||
# run: docker run -p 4002:4002/udp -p 4001:4001 -p 5001:5001 go-ipfs:latest daemon --init
|
# run: docker run -p 8080:8080 -p 4001:4001 -p 5001:5001 go-ipfs:latest
|
||||||
|
Reference in New Issue
Block a user