netbox-docker-plugin icon indicating copy to clipboard operation
netbox-docker-plugin copied to clipboard

[Feature] Add "command" option to container

Open vamitrou opened this issue 1 year ago • 3 comments

Netbox version Plugin Version Agent version Docker API Version

Feature request

It will be nice to be able to override the "command" of the container in the GUI/API.

vamitrou avatar Jan 03 '25 09:01 vamitrou

@vamitrou thanks for your issue. Changing the command might be for running a container as a job as per https://github.com/SaaShup/netbox-docker-plugin/issues/176 Is that to achieve the same goal ?

lvenier avatar Jan 03 '25 09:01 lvenier

My use case would be different. We currently deploy a long-running container which we need to override the CMD. I have a workaround for now, but it would be nice to be able to override CMD/ENTRYPOINT directly from netbox.

vamitrou avatar Jan 03 '25 14:01 vamitrou

I am not sure I understand the goal. Why would I change the CMD or ENTRYPOINT of a container ? I would tend to create a second docker file and create an image per CMD/ENTRYPOINT... Opinions a welcome.

lvenier avatar Jan 07 '25 12:01 lvenier