尝试 运行 docker-撰写时出错

Error while trying to run docker-compose up

Docker-compose.yml 文件:

version: "3"

services:
  terrad:
    image: terramoney/localterra-core:bombay
    pull_policy: always
    volumes:
      - ./config:/root/.terra/config
    networks:
      - terra
    ports:
      - "26657:26657"
      - "1317:1317"
      - "9090:9090"
      - "9091:9091"
    command: terrad start
  oracle:
    image: terramoney/pseudo-feeder:bombay
    pull_policy: always
    depends_on:
      - terrad
    networks:
      - terra
    environment:
      TESTNET_LCD_URL: http://terrad:1317
    command: start
  postgres:
    image: postgres:12
    volumes:
      - ./init.sql:/docker-entrypoint-initdb.d/init.sql
    networks:
      - terra
    environment:
      POSTGRES_USER: dev
      POSTGRES_PASSWORD: dev
  # redis:
  #   image: redis:latest
  #   networks:
  #     - terra
  #   ports:
  #     - "6379:6379"
  fcd-collector:
    image: terramoney/fcd:1.0.0-beta.2
    depends_on:
      - terrad
      - postgres
    volumes:
      - ./logs:/app/logs
    networks:
      - terra
    env_file: fcd.env
    command: collector
    restart: unless-stopped
  fcd-api:
    image: terramoney/fcd:1.0.0-beta.2
    depends_on:
      - terrad
      - postgres
    volumes:
      - ./logs:/app/logs
    networks:
      - terra
    ports:
      - 3060:3060
    env_file: fcd.env
    command: start

networks:
  terra:
    driver: bridge

当尝试 运行 docker-compose 时,我遇到了这个错误: 我的 docker-compose 版本是 2.1.1

我遇到了这个错误 在 unix:///var/run/docker.sock 尝试连接到 Docker 守护程序套接字时获得权限被拒绝:获取“http://%2Fvar%2F运行%2Fdocker.sock/v1.24/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.project%3Dlocalterra%22%3Atrue%7D%7D&limit=0":拨打 unix /var/run/docker.sock:连接:权限被拒绝

您已将 pull_policy 设置为 false。允许的值为 alwaysnevermissingbuild。您也可以将其留空。

Docs are here.