Home  >  Q&A  >  body text

无法使用docker 命令搜g++?

docker search g++
FATA[0000] Error response from daemon: Invalid repository name (g++), only [a-z0-9-_.] are allowed
咋回事?
名字里就是有加号,为啥不能搜:(

PHPzPHPz2710 days ago782

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-21 11:18:43

    The error is very clear[a-z0-9-_.]
    A valid container name only contains the following characters

    1. lower case letters a-z
    2. Underline
    3. polka dots
    4. Horizontal line

    https://github.com/docker/docker/blob/6870bde5847d4484d87f91baf58edc52f575ea5d/registry/config.go#L36

    reply
    0
  • Cancelreply