Docker 相关

No colorized output

日志突然就木有颜色了。

ANSI codes has been removed.

Relate to https://github.com/docker/compose/issues/2231#issuecomment-165137408

Try adding tty: true to the service config.

yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  qa.powerfulyang.com:
    image: powerfulyang/qa.powerfulyang.com
    container_name: qa.powerfulyang.com
    restart: always
    command: npm run start
    env_file:
      - ./qa.powerfulyang.com/.env
    tty: true
    logging:
      driver: gelf
      options:
        gelf-address: udp://localhost:12201
    networks:
      - default
      - public