Sign inSign up

liyuanbiao/sing-box

By liyuanbiao

•Updated almost 3 years ago

基于sing-box的releases发布的docker镜像

Image
4

7.7K

liyuanbiao/sing-box repository overview

基于sing-box⁠的releases发布的docker镜像,(每天自动构建,保持最新版本)

Dockerfile请查看 https://raw.githubusercontent.com/Jiraiya8/docker-sing-box/main/Dockerfile⁠

⁠使用方法

Docker

docker run -d --net host -v /etc/sing-box/config.json:/etc/sing-box/config.json liyuanbiao/sing-box:latest

Docker Compose (推荐)

mkdir sing-box && cd sing-box
# 编写配置文件
mkdir /etc/sing-box/
vim /etc/sing-box/config.json
# 编写docker-compose.yml,内容如下面所示
vim docker-compose.yml 
# 启动
docker-compose up -d
# 检查是否存在错误
docker-compose logs

docker-compose.yml

version: '3.3'
services:
  sing-box:
    image: liyuanbiao/sing-box:latest
    container_name: sing-box
    restart: unless-stopped
    network_mode: host
    volumes:
      - '/etc/sing-box/config.json:/etc/sing-box/config.json'

Tag summary

Content type

Image

Digest

sha256:019fbf942…

Size

14.7 MB

Last updated

almost 3 years ago

docker pull liyuanbiao/sing-box