privileged

This commit is contained in:
手瓜一十雪 2024-10-22 18:21:07 +08:00 committed by GitHub
parent 0aad81753e
commit fb114922b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ docker run -d \
-p 6099:6099 \ -p 6099:6099 \
--name napcat \ --name napcat \
--restart=always \ --restart=always \
--security-opt seccomp:unconfined \ --privileged \
mlikiowa/napcat-docker:latest mlikiowa/napcat-docker:latest
``` ```
@ -50,9 +50,7 @@ services:
ports: ports:
- 3001:3001 - 3001:3001
- 6099:6099 - 6099:6099
tty: true privileged: true
security_opt:
- seccomp:unconfined
container_name: napcat container_name: napcat
network_mode: bridge network_mode: bridge
restart: always restart: always
@ -74,7 +72,7 @@ docker run -d \
-e WS_URLS='["ws://192.168.3.8:5140/onebot"]' \ -e WS_URLS='["ws://192.168.3.8:5140/onebot"]' \
-e NAPCAT_GID=$(id -g) \ -e NAPCAT_GID=$(id -g) \
-e NAPCAT_UID=$(id -u) \ -e NAPCAT_UID=$(id -u) \
--security-opt seccomp:unconfined \ --privileged \
--name napcat \ --name napcat \
--restart=always \ --restart=always \
mlikiowa/napcat-docker:latest mlikiowa/napcat-docker:latest
@ -95,9 +93,7 @@ services:
- NAPCAT_GID=${NAPCAT_GID} - NAPCAT_GID=${NAPCAT_GID}
container_name: napcat container_name: napcat
network_mode: bridge network_mode: bridge
tty: true privileged: true
security_opt:
- seccomp:unconfined
ports: ports:
- 6099:6099 - 6099:6099
restart: always restart: always
@ -125,7 +121,7 @@ docker run -d \
-p 6099:6099 \ -p 6099:6099 \
--name napcat \ --name napcat \
--restart=always \ --restart=always \
--security-opt seccomp:unconfined \ --privileged \
mlikiowa/napcat-docker:latest mlikiowa/napcat-docker:latest
``` ```
@ -147,9 +143,7 @@ services:
ports: ports:
- 3000:3000 - 3000:3000
- 6099:6099 - 6099:6099
tty: true privileged: true
security_opt:
- seccomp:unconfined
container_name: napcat container_name: napcat
network_mode: bridge network_mode: bridge
restart: always restart: always