nerd icon indicating copy to clipboard operation
nerd copied to clipboard

Make it possible to specify the .Command field of the Kubernetes Container struct

Open advdv opened this issue 7 years ago • 2 comments

Currently it is not possible to specify the command of a container when using nerd job run. For what use cases do we need this and how can we separate .Command from .Args?

advdv avatar Feb 09 '18 13:02 advdv

@Overv Could you provide a usecase/container that requires this to be available to the CLI?

advdv avatar Feb 19 '18 08:02 advdv

I can't really think of any use cases that absolutely require it right now. It seems that most people only use it to inspect containers by executing bash, which is not a relevant use case for our platform. Even rancher, which uses a single image for starting kubelet, controller-manager, etc. passes the binary to start as an argument instead of a command.

Users will have the following alternatives:

  • Build their own image
  • Run a generic image like busybox or Ubuntu, where they can pass arbitrary commands to the shell

Overv avatar Feb 19 '18 09:02 Overv