---
title: "Discussion on \"docker部署sing-box\" | Hashnode"
description: "Discussion on \"docker部署sing-box\". 1.创建docker-compose.yaml文件\nservices:\n  sing-box:\n    image: ghcr.io/sagernet/sing-box:latest\n    container_name: sing-box\n    restart: always\n    network_mode: \"host\"\n    volumes:\n      - ./config:/etc/sing-box\n    command: run -c /etc/sing-box/config..."
url: "https://hashnode.com/posts/dockersing-box/67ecd368bef02fd45a40abe7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [docker部署sing-box](https://notes.nbsp.work/dockersing-box?utm_source=hashnode&utm_medium=feed)

1.创建docker-compose.yaml文件 services: sing-box: image: ghcr.io/sagernet/sing-box:latest container\_name: sing-box restart: always network\_mode: "host" volumes: - ./config:/etc/sing-box command: run -c /etc/sing-box/config...

Apr 2, 2025 · 4 min read · notes.nbsp.work  
Updated Aug 19, 2025  
Read the article

-   [#vless](https://hashnode.com/tag/vless)

## Written by

[kimlopez](https://hashnode.com/@admi)

@admi

  
[View profile](https://hashnode.com/@admi)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
