Error response from daemon: failed to create shim task: OCI runtime create failed: container_linux.g
docker启动报错Error response from daemon: failed to create shim task: OCI runtime create failed: container_linux.go:328: starting container process caused "permission denied": unknown
·
docker run启动容器添加--privileged=true,以单机redis为例
docker run --name redis --privileged=true \
-p 6379:6379 \
-v /data/redis/redis.conf:/etc/redis/redis.conf \
-v /data/redis/data:/data \
-d redis redis-server /etc/redis/redis.conf
docker-compose启动容器需要在docker-compose.yml添加privileged: true,以单机redis为例
version: '3.8'
services:
redis:
image: redis
privileged: true
ports:
- "6379:6379"
volumes:
- /data/redis/redis.conf:/etc/redis/redis.conf
- /data/redis/data:/data
command: ["redis-server", "/etc/redis/redis.conf"]
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献2条内容
所有评论(0)