Skip to content

This is a Docker project which runs a single IPFS node in a container

Notifications You must be signed in to change notification settings

subhasisbanik/ipfsDocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ipfsDocker

This is a Docker project which runs IPFS node in a container. It contains a main golang image from Dockerhub acting as a base image. You can consider working on the ipfs by entering the container only and running the ipfs daemon. If you wish not to connect to other nodes, you can delete the links from the "Bootstrap" section from the "/root/.ipfs/config"

Steps to use this repository is as follows:

  1. Clone the repository:
git clone https://github.com/subhasisbanik/ipfsDocker.git
  1. Change the current working directory:
cd ipfsDocker
  1. Build the Docker image:
docker build -t ipfsdocker .
  1. Run the contaner:
docker run -d -i ipfsdocker
  1. Check if the container is running:
docker ps -a
  1. Enter the container to run the daemon:
docker exec -it <container-id> bash
  1. Change the config file if Bootstrapping with other public nodes i not desired:
vi /root/.ipfs/config
  1. Run IPFS daemon:
ipfs daemon

Post this your daemon is ready to accept and deliver your content. For instance, if you wish to add a file to ipfs,

ipfs add <filename>

And if you wish to retrieve the content from the generated hash,

ipfs cat <filehash>

For elaborate commands on IPFS, please refer to,

https://ipfs.io/docs/commands/

About

This is a Docker project which runs a single IPFS node in a container

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published