What is Hasty Paste?
Hasty Paste
Is a place to quickly paste text and share, mainly for sharing debug logs, etc., to help developers provide technical support. The project aims to be fast and small.
command line installation
Install it in Docker mode on Synology.
The official image is not published in docker hub
, but in ghcr.io
, so install it directly with the command line
3
When Lao Su tossed at the beginning of the month,latest
the corresponding version was1.9.0
SSH
Execute the following commands in sequence in the client
# 下载镜像
docker pull ghcr.io/enchant97/hasty-paste:latest
If you do not surf the Internet scientifically, you may not be able to pull it. You can try docker
the proxy website: https://dockerproxy.com/ , but there will be a few more steps
# 如果拉不动的话加个代理
docker pull ghcr.dockerproxy.com/enchant97/hasty-paste:latest
# 重命名镜像(如果是通过代理下载的)
docker tag ghcr.dockerproxy.com/enchant97/hasty-paste:latest ghcr.io/enchant97/hasty-paste:latest
# 删除代理镜像(如果是通过代理下载的)
docker rmi ghcr.dockerproxy.com/enchant97/hasty-paste:latest
If you are familiar with the command line, it may be docker cli
faster to use
# 新建文件夹 hastypaste 和 子目录
mkdir -p /volume2/docker/hastypaste/data
# 进入 hastypaste 目录
cd /volume2/docker/hastypaste
# 修改 data 目录权限
chmod 777 ./data
# 运行容器
docker run -d \
--restart unless-stopped \
--name hasty-paste \
-p 8113:8000 \
-v $(pwd)/data:/app/data \
ghcr.io/enchant97/hasty-paste:latest
You can also use docker-compose
the installation, save the following content as docker-compose.yml
a file
version: "3"
services:
paste-bin:
image: ghcr.io/enchant97/hasty-paste:latest
container_name: hasty-paste
restart: unless-stopped
ports:
- 8113:8000
volumes:
- ./data:/app/data
Then execute the following command
# 新建文件夹 hastypaste 和 子目录
mkdir -p /volume2/docker/hastypaste/data
# 进入 hastypaste 目录
cd /volume2/docker/hastypaste
# 修改 data 目录权限
chmod 777 ./data
# 将 docker-compose.yml 放入当前目录
# 一键启动
docker-compose up -d
run
Enter in the browser http://群晖IP:8113
to see the main interface
Some netizens asked to pass seafile
the settings file before dtable_web_settings.py
, so I will take this as an example
Once created, you can share
reference documents
enchant97/hasty-paste: A fast and minimal paste bin.
Address: https://github.com/enchant97/hasty-paste
Hasty Paste
address: https://enchantedcode.co.uk/hasty-paste/