find456789
V2EX  ›  问与答

Google 中,怎么搜索 * 星号,加了双引号 也搜不出

  •  
  •   find456789 · Feb 17, 2018 · 4477 views
    This topic created in 3194 days ago, the information mentioned may be changed or developed.

    在 docker 的 compose-file 中

    有如下代码:

    version: '2.1'
    x-logging:
      &default-logging
      options:
        max-size: '12m'
        max-file: '5'
      driver: json-file
    
    services:
      web:
        image: myapp/web:latest
        logging: *default-logging
      db:
        image: mysql:latest
        logging: *default-logging
    

    可以看出 logging: *default-logging 中有个 *号, 不明白什么意思

    上谷歌搜

    docker-compose *

    docker-compose "*"

    docker-compose "/*"

    docker-compose "*"

    都搜不出, 请问有人知道怎么搜 *号吗

    11 replies  •  2018-02-18 23:55:36 +08:00
    monnand
    monnand
    Feb 17, 2018 via Android❤️1
    2
    你是想知道星号在 Google 里怎么搜还是星号在 docker compose 配置文件里的意思?第一个问题的答案我不清楚,我猜是不能搜。第二个问题的答案我知道:在这个文档里查 Extension fields https://docs.docker.com/compose/compose-file/#compose-documentation
    Biebe
    Biebe
    Feb 17, 2018 via iPhone❤️1
    3
    这不是 yaml 的锚点吗
    irockytan
    irockytan
    Feb 17, 2018 via Android❤️1
    4
    楼上说的对,这个问题和 Google 没有关系,和 Docker Compose 也没有关系,你看看 YAML 语法吧
    chanssl
    chanssl
    Feb 17, 2018 via Android❤️1
    5
    YAML 格式中:&建立锚点,*引用锚点
    azurefire
    azurefire
    Feb 17, 2018 via iPhone❤️1
    6
    docker-compose asterisk
    Cyron
    Cyron
    Feb 18, 2018 via iPhone❤️1
    8
    asterisk/star ?
    UnluckyNinja
    UnluckyNinja
    Feb 18, 2018❤️1
    9
    XYZ 问题,还好楼主问对地方了
    Khlieb
    Khlieb
    Feb 18, 2018 via Android❤️1
    11
    搜索 U+002A 试试看
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4247 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 07:12 · PVG 15:12 · LAX 23:12 · JFK 02:12
    ♥ Do have faith in what you're doing.