build: fix cgroup create failed if docker set Security Options: cgroupns
ref: https://docs.docker.com/reference/compose-file/services/#cgroup Signed-off-by: fanzu8 <tuzengbing@gmail.com>
This commit is contained in:
parent
808cbe922f
commit
e519a3e46e
|
@ -21,7 +21,7 @@
|
|||
- **极速体验**
|
||||
如果你只关心底层原理,不关心存储、前端展示等,我们提供了编译好的镜像,已包含 HUATUO 底层运行的必要组件,直接运行即可:
|
||||
```bash
|
||||
$ docker run --privileged --network=host -v /sys:/sys -v /run:/run huatuo/huatuo-bamai:latest
|
||||
$ docker run --privileged --cgroupns=host --network=host -v /sys:/sys -v /run:/run huatuo/huatuo-bamai:latest
|
||||
```
|
||||
|
||||
- **快速搭建**
|
||||
|
|
|
@ -16,7 +16,7 @@ HuaTuo also integrates core technologies such as automated tracing, profiling, a
|
|||
If you only care about the underlying principles and not about storage backends or frontend display, we provide a pre-built image containing all necessary components for HUATO's core operation. Just run:
|
||||
|
||||
```bash
|
||||
$ docker run --privileged --network=host -v /sys:/sys -v /run:/run huatuo/huatuo-bamai:latest
|
||||
$ docker run --privileged --cgroupns=host --network=host -v /sys:/sys -v /run:/run huatuo/huatuo-bamai:latest
|
||||
```
|
||||
|
||||
- **Quick Setup**
|
||||
|
|
|
@ -33,14 +33,15 @@ services:
|
|||
image: huatuo/huatuo-bamai:latest
|
||||
container_name: huatuo-bamai
|
||||
network_mode: host
|
||||
cgroup: host
|
||||
privileged: true
|
||||
environment:
|
||||
ELASTICSEARCH_HOST: ${ELASTICSEARCH_HOST:-}
|
||||
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD:-}
|
||||
RUN_PATH: ${RUN_PATH:-}
|
||||
volumes:
|
||||
- /sys:/sys
|
||||
- /run:/run
|
||||
- /sys:/sys:rw
|
||||
- /run:/run:rw
|
||||
- ../../huatuo-bamai.conf:${RUN_PATH}/huatuo-bamai.conf:rw
|
||||
- ./run.sh:${RUN_PATH}/run.sh:ro
|
||||
command: ["./run.sh"]
|
||||
|
|
Loading…
Reference in New Issue