docker 服务的配置选项不受支持,日志记录:“司机”

yi0zb3m4  于 2023-03-17  发布在  Docker
关注(0)|答案(1)|浏览(97)
version: '3.2'
services:
  nodeserver:
    build:
      context: .
    ports:
      - '5000:5000'
  nginx:
    restart: always
    build:
      context: ./nginx
    ports:
      - '80:80'
  logging:
    driver: awslogs
    options:
      awslogs-region: ap-south-1

version: '3.2'
services:
  nodeserver:
    build:
      context: .
    ports:
      - '5000:5000'
  nginx:
    restart: always
    build:
      context: ./nginx
    ports:
      - '80:80'
  logging:
    driver: awslogs
    options:
      awslogs-region: ap-south-1
qgelzfjb

qgelzfjb1#

logging是服务上的键,而不是services对象上的键。
logging块的缩进增加1层。

相关问题