@@ -67,6 +67,7 @@ You can check the development status at the [Waffle Board](https://waffle.io/ipf
67
67
- [ Node Management] ( #node-management )
68
68
- [ Domain data types] ( #domain-data-types )
69
69
- [ FAQ] ( #faq )
70
+ - [ Running js-ipfs with Docker] ( #running-js-ipfs-with-docker )
70
71
- [ Packages] ( #packages )
71
72
- [ Development] ( #development )
72
73
- [ Clone and install dependencies] ( #clone-and-install-dependencies )
@@ -507,6 +508,38 @@ HOME=~/.electron-gyp npm install
507
508
508
509
If you find any other issue, please check the [ ` Electron Support ` issue] ( https://github.com/ipfs/js-ipfs/issues/843 ) .
509
510
511
+ ## Running js-ipfs with Docker
512
+
513
+ We have automatic Docker builds setup with Docker Hub: https://hub.docker.com/r/ipfs/js-ipfs/
514
+
515
+ All branches in the Github repository maps to a tag in Docker Hub, except ` master ` Git branch which is mapped to ` latest ` Docker tag.
516
+
517
+ You can run js-ipfs like this:
518
+
519
+ ```
520
+ $ docker run -it -p 4002:4002 -p 4003:4003 -p 5002:5002 -p 9090:9090 ipfs/js-ipfs:latest
521
+
522
+ initializing ipfs node at /root/.jsipfs
523
+ generating 2048-bit RSA keypair...done
524
+ peer identity: Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS
525
+ to get started, enter:
526
+
527
+ jsipfs files cat /ipfs/QmfGBRT6BbWJd7yUc2uYdaUZJBbnEFvTqehPFoSMQ6wgdr/readme
528
+
529
+ Initializing daemon...
530
+ Using wrtc for webrtc support
531
+ Swarm listening on /ip4/127.0.0.1/tcp/4003/ws/ipfs/Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS
532
+ Swarm listening on /ip4/172.17.0.2/tcp/4003/ws/ipfs/Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS
533
+ Swarm listening on /ip4/127.0.0.1/tcp/4002/ipfs/Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS
534
+ Swarm listening on /ip4/172.17.0.2/tcp/4002/ipfs/Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS
535
+ API is listening on: /ip4/0.0.0.0/tcp/5002
536
+ Gateway (readonly) is listening on: /ip4/0.0.0.0/tcp/9090
537
+ Daemon is ready
538
+
539
+ $ curl --silent localhost:5002/api/v0/id | jq .ID
540
+ "Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS"
541
+ ```
542
+
510
543
## Packages
511
544
512
545
| Package | Version | Deps | DevDeps | Travis | Circle | AppVeyor | Coverage |
0 commit comments