From 889a081313c3e01a2e36955b7552c9d0a199a7d5 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 23 Jul 2015 16:17:08 -0400 Subject: [PATCH] Docker: Default CMD to bash This is what Debian/Ubuntu do, and it is kind of friendly. We're assuming this base image container has bash, which seems reasonable for "fat" base images. Anyone can override this of course with derived images, which is kind of the point. (Note: totally untested) --- imagefactory_plugins/Docker/Docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imagefactory_plugins/Docker/Docker.py b/imagefactory_plugins/Docker/Docker.py index db856e94..7cbda407 100644 --- a/imagefactory_plugins/Docker/Docker.py +++ b/imagefactory_plugins/Docker/Docker.py @@ -57,7 +57,7 @@ class Docker(object): "comment": "{commentstring}", "created": "{createdtime}", "container_config": {{ - "Cmd": null, + "Cmd": ["/bin/bash"], "Env": null, "StdinOnce": false, "OpenStdin": false,