@@ -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 )
@@ -501,6 +502,38 @@ HOME=~/.electron-gyp npm install
501
502
502
503
If you find any other issue, please check the [ ` Electron Support ` issue] ( https://github.com/ipfs/js-ipfs/issues/843 ) .
503
504
505
+ ## Running js-ipfs with Docker
506
+
507
+ We have automatic Docker builds setup with Docker Hub: https://hub.docker.com/r/ipfs/js-ipfs/
508
+
509
+ All branches in the Github repository maps to a tag in Docker Hub, except ` master ` Git branch which is mapped to ` latest ` Docker tag.
510
+
511
+ You can run js-ipfs like this:
512
+
513
+ ```
514
+ $ docker run -it -p 4002:4002 -p 4003:4003 -p 5002:5002 -p 9090:9090 ipfs/js-ipfs:latest
515
+
516
+ initializing ipfs node at /root/.jsipfs
517
+ generating 2048-bit RSA keypair...done
518
+ peer identity: Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS
519
+ to get started, enter:
520
+
521
+ jsipfs files cat /ipfs/QmfGBRT6BbWJd7yUc2uYdaUZJBbnEFvTqehPFoSMQ6wgdr/readme
522
+
523
+ Initializing daemon...
524
+ Using wrtc for webrtc support
525
+ Swarm listening on /ip4/127.0.0.1/tcp/4003/ws/ipfs/Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS
526
+ Swarm listening on /ip4/172.17.0.2/tcp/4003/ws/ipfs/Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS
527
+ Swarm listening on /ip4/127.0.0.1/tcp/4002/ipfs/Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS
528
+ Swarm listening on /ip4/172.17.0.2/tcp/4002/ipfs/Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS
529
+ API is listening on: /ip4/0.0.0.0/tcp/5002
530
+ Gateway (readonly) is listening on: /ip4/0.0.0.0/tcp/9090
531
+ Daemon is ready
532
+
533
+ $ curl --silent localhost:5002/api/v0/id | jq .ID
534
+ "Qmbd5jx8YF1QLhvwfLbCTWXGyZLyEJHrPbtbpRESvYs4FS"
535
+ ```
536
+
504
537
## Packages
505
538
506
539
| Package | Version | Deps | DevDeps | Travis | Circle | AppVeyor | Coverage |
0 commit comments