1
0
mirror of https://github.com/moby/moby.git synced 2025-12-24 13:21:20 +03:00

Allow child to overwrite entrypoint from parent

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2014-10-07 22:39:50 +00:00
parent 12203e475d
commit 50fa9dffcf
3 changed files with 111 additions and 6 deletions

View File

@@ -302,8 +302,8 @@ func deleteAllContainers() error {
return nil
}
func deleteImages(images string) error {
rmiCmd := exec.Command(dockerBinary, "rmi", images)
func deleteImages(images ...string) error {
rmiCmd := exec.Command(dockerBinary, "rmi", strings.Join(images, " "))
exitCode, err := runCommand(rmiCmd)
// set error manually if not set
if exitCode != 0 && err == nil {