返回 首页

docker容器报错runtime/cgo: pthread_create failed: Operation not permitted


参考: https://github.com/docker-library/golang/issues/467

docker run增加参数--security-opt seccomp=unconfined

docker-compose增加参数security_opt 实例如下:

version: '3'
services:
  ollama:
    image: ollama/ollama
    container_name: ollama
    security_opt:
      - seccomp:unconfined
    ports:
      - "11434:11434"
    volumes:
      - ./.ollama:/root/.ollama


评论(1)

1楼 2024-06-19 15:48:34
a说: <script>alert('ok')</script>

登录