Sign inSign up

pocat/sing-box

By pocat

Updated about 24 hours ago

Docker Image for sing-box

Image
2

50K+

pocat/sing-box repository overview

Docker Image for sing-box : https://github.com/SagerNet/sing-box

Supported Architectures

i386 amd64 arm32v6 arm32v7 arm64v8 ppc64le s390x

Usage explanations
  • Get this image
$ docker pull pocat/sing-box
  • Create a directory
$ mkdir -p /etc/sing-box /var/log/sing-box/
  • Modify the configuration
$ cat > /etc/sing-box/config.json <<EOF
{
  "log": {
    "disabled": false,
    "level": "info",
    "output": "/var/log/sing-box/sing-box.log",
    "timestamp": true
  },
  "inbounds": [
    {
      "type": "shadowsocks",
      "listen": "::",
      "listen_port": 8080,
      "method": "2022-blake3-aes-128-gcm",
      "password": "8JCsPssfgS8tiRwiMlhARg=="
    }
  ],
  "route": {
    "geoip": {
      "path": "geoip.db"
    },
    "geosite": {
      "path": "geosite.db"
    }
  }
}
EOF
  • Start the service
$ docker run --network host --name sing-box -v /etc/sing-box:/etc/sing-box -v /var/log/sing-box:/var/log/sing-box --restart=always -d pocat/sing-box

Tag summary

Content type

Image

Digest

sha256:cdf37c305

Size

32.6 MB

Last updated

about 24 hours ago

docker pull pocat/sing-box