Container name having space and special characters should be disallowed, current regular expression is wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zun |
Fix Committed
|
Undecided
|
Pradeep Kumar Singh |
Bug Description
stack@vagrant:~$ zun create --name "Pradeep Singh" --image busybox
+------
| Property | Value |
+------
| status | Creating |
| workdir | None |
| name | Pradeep Singh |
| links | ["{u'href': u'http://
| image | busybox |
| labels | {} |
| cpu | None |
| environment | {} |
| command | None |
| hostname | None |
| memory | None |
| task_state | None |
| status_reason | None |
| ports | [] |
| uuid | f3bfaf5a-
+------
stack@vagrant:~$ docker run --name "Pradeep Singh" busybox
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
56bec22e3559: Pull complete
Digest: sha256:
Status: Downloaded newer image for busybox:latest
docker: Error response from daemon: Invalid container name (Pradeep Singh), only [a-zA-Z0-
See 'docker run --help'.
stack@vagrant:~$ zun show "Pradeep Singh"
+------
| Property | Value |
+------
| status | Error |
| workdir | None |
| name | Pradeep Singh |
| links | ["{u'href': u'http://
| image | busybox |
| labels | {} |
| cpu | None |
| environment | {} |
| command | None |
| hostname | None |
| memory | None |
| task_state | None |
| status_reason | Image busybox not found |
| ports | [] |
| uuid | f3bfaf5a-
+------
stack@vagrant:~$
Changed in zun: | |
assignee: | nobody → Pradeep Kumar Singh (pradeep-singh-u) |
status: | New → Confirmed |
Changed in zun: | |
status: | Confirmed → Fix Committed |
Fix proposed to branch: master /review. openstack. org/396028
Review: https:/