免费资源网 – https://freexyz.cn/
docker-tc是一个github开源项目,项目地址是https://github.com/lukaszlach/docker-tc。
运行docker-tc
docker run -d –name docker-tc –network host –cap-add NET_ADMIN –restart always -v /var/run/docker.sock:/var/run/docker.sock -v /var/docker-tc:/var/docker-tc lukaszlach/docker-tc:latest在容器中配置对其进行限速,限速为1mbit/s
version: “3” services: wxedge: image: onething1/wxedge:latest container_name: wxedge restart: always volumes: – /mnt/g/wxedge/storage:/storage:rw tmpfs: – /run – /tmp environment: – PLACE=CTKS logging: options: max-size: “10m” privileged: true network_mode: “host” labels: – “com.docker-tc.enabled=1” – “com.docker-tc.limit=1mbit”是否生效有待观察
不行,这个东西很吃内存
不建议使用
© 版权声明
THE END
暂无评论内容