microsoft / vscode-docker-extensibility

Docker for Visual Studio Code: Extensibility Model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement regex parser for image names

danegsta opened this issue · comments

Implement a regex for parsing image name components out of a full image name (registry, name, tag)

@danegsta and I were talking, and we thought it would be nice for the image list and/or inspect to include a lot of info about names. For example, something along these lines:

  • Verbose full name, as verbose as possible. e.g. docker.io/library/alpine:latest
  • "Original" full name, as close to the CLI output as possible. e.g. alpine:latest. For Docker this is probably just keeping off the implicit docker.io/library/
  • Registry, e.g. docker.io
  • Image e.g. library/alpine
  • Maybe repository + separate image? e.g. library and alpine
  • Tag e.g. latest