Skip to content

Commit

Permalink
podex: add comment about image name parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
proppy committed Oct 2, 2014
1 parent dd571c5 commit 5aefc25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/podex/podex.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ func main() {
log.Fatal(usage)
}

// Parse docker image name
// IMAGE: [REGISTRYHOST/][USERNAME/]NAME[:TAG]
// NAME: [a-z0-9-_.]
parts := strings.Split(imageName, "/")
baseName := parts[len(parts)-1]

Expand Down

0 comments on commit 5aefc25

Please sign in to comment.