在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:linuxserver/docker-ipfs开源软件地址:https://github.com/linuxserver/docker-ipfs开源编程语言:Dockerfile 100.0%开源软件介绍:The LinuxServer.io team brings you another container release featuring:
Find us at:
DEPRECATION NOTICEThis image is deprecated. We will not offer support for this image and it will not be updated. Please use the official IPFS container here: https://hub.docker.com/r/ipfs/go-ipfs When this project started the web interface was not integrated well with the default IPFS server. Now it is great and well maintained, hosting it on a static webserver does not make much sense anymore. linuxserver/ipfsIpfs - A peer-to-peer hypermedia protocol designed to make the web faster, safer, and more open. Supported ArchitecturesOur images support multiple architectures such as Simply pulling The architectures supported by this image are:
Application SetupIn order to push files beyond your local gateway you have to make sure port 4001 is forwarded to the internet. This is required for IPFS peers to reach in and grab your files so public gateways can serve them. Access the webui at http://localhost , if not using localhost scroll to the bottom of the page and set the API Address setting to IE http://192.168.1.10:5001 , from there you can upload and manage files you push to IPFS. Your gateway to access IPFS files is http://localhost:8080/ipfs/YOUR-FILE-HASH-HERE . You can also simply use public IPFS gateways like:
Cloudflare is a solid option as they actually edge cache the files on their CDN so even if your node pinning the item goes down for periods of time their cache will last up to a month. For more on using IPFS please read the docs here UsageHere are some example snippets to help you get started creating a container. click here for more info)docker-compose (recommended,---
version: "2.1"
services:
ipfs:
image: lscr.io/linuxserver/ipfs
container_name: ipfs
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- /path/to/data:/config
ports:
- 80:80
- 4001:4001
- 5001:5001
- 8080:8080
- 443:443 #optional
restart: unless-stopped click here for more info)docker cli (docker run -d \
--name=ipfs \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-p 80:80 \
-p 4001:4001 \
-p 5001:5001 \
-p 8080:8080 \
-p 443:443 `#optional` \
-v /path/to/data:/config \
--restart unless-stopped \
lscr.io/linuxserver/ipfs ParametersContainer images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate
Environment variables from files (Docker secrets)You can set any environment variable from a file by using a special prepend As an example: -e FILE__PASSWORD=/run/secrets/mysecretpassword Will set the environment variable Umask for running applicationsFor all of our images we provide the ability to override the default umask settings for services started within the containers using the optional User / Group IdentifiersWhen using volumes ( Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic. In this instance $ id username
uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup) Docker ModsWe publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above. Support Info
Updating InfoMost of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image. Below are the instructions for updating containers: Via Docker Compose
Via Docker Run
Via Watchtower auto-updater (only use if you don't remember the original parameters)
Note: We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using Docker Compose. Image Update Notifications - Diun (Docker Image Update Notifier)
Building locallyIf you want to make local modifications to these images for development purposes or just to customize the logic: git clone https://github.com/linuxserver/docker-ipfs.git
cd docker-ipfs
docker build \
--no-cache \
--pull \
-t lscr.io/linuxserver/ipfs:latest . The ARM variants can be built on x86_64 hardware using docker run --rm --privileged multiarch/qemu-user-static:register --reset Once registered you can define the dockerfile to use with Versions
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论