Fix issue 6294: networking e2e should set args, not command

This commit is contained in:
Paul Morie 2015-04-01 11:40:23 -04:00
parent 762c449043
commit 0335e350c7
2 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,8 @@ func (r *DockerContainerRunner) RunContainer(pod *api.Pod, container *api.Contai
setEntrypointAndCommand(container, &dockerOpts)
glog.V(3).Infof("Container %v/%v/%v: setting entrypoint \"%v\" and command \"%v\"", pod.Namespace, pod.Name, container.Name, dockerOpts.Config.Entrypoint, dockerOpts.Config.Cmd)
dockerContainer, err := r.Client.CreateContainer(dockerOpts)
if err != nil {
if ref != nil {

View File

@ -117,7 +117,7 @@ var _ = Describe("Networking", func() {
{
Name: "webserver",
Image: "kubernetes/nettest:1.1",
Command: []string{
Args: []string{
"-service=" + name,
fmt.Sprintf("-peers=%d", peers),
"-namespace=" + ns},