# Please make it possible to override the base command of the build container

**URL:** <https://forum.buildkite.community/t/please-make-it-possible-to-override-the-base-command-of-the-build-container/3616>\
**Category:** Features Requests\
**Created:** [March 27, 2024, 1:52pm UTC](https://forum.buildkite.community/t/please-make-it-possible-to-override-the-base-command-of-the-build-container/3616 "2024-03-27T13:52:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aressem](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aressem](https://forum.buildkite.community/u/aressem)\
**Post date:** [March 27, 2024, 1:52pm UTC](https://forum.buildkite.community/t/please-make-it-possible-to-override-the-base-command-of-the-build-container/3616/1 "2024-03-27T13:52:45Z")

</div>

I would like to start the build container with a working systemd inside. This means having /sbin/init as PID 1. Currently there is no good way to do this as the container command is hardcoded here:

> <https://github.com/buildkite/agent-stack-k8s/blob/2bf25843d9aaa1cbf2b0b0bb6b742cb1187b5e1c/internal/controller/scheduler/scheduler.go#L248>

It would be nice to be able to override this command to be able to start /sbin/init and then the buildkite-agent with its arguments.

We could ofcourse hack this in to a container image derived from the official one, but would rather not 🙂

---

<div class="post-metadata">

**Author:** ![karen.sawrey](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/karen.sawrey/32/1188_2.png) [@karen.sawrey](https://forum.buildkite.community/u/karen.sawrey)\
**Post date:** [March 27, 2024, 4:00pm UTC](https://forum.buildkite.community/t/please-make-it-possible-to-override-the-base-command-of-the-build-container/3616/2 "2024-03-27T16:00:49Z")

</div>

Hello, @aressem and welcome to the Buildkite Community!

Thank you for pointing out this use case!  
We recommend that for this change you open an [issue directly](https://github.com/buildkite/agent-stack-k8s/issues) on the Buildkite Agent Stack for Kubernetes repository.

Best!  
Karen

---

<div class="post-metadata">

**Author:** ![aressem](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@aressem](https://forum.buildkite.community/u/aressem)\
**Post date:** [March 27, 2024, 8:42pm UTC](https://forum.buildkite.community/t/please-make-it-possible-to-override-the-base-command-of-the-build-container/3616/3 "2024-03-27T20:42:22Z")

</div>

Thank you Karen. Created [Make it possible to run init/systemd inside the build container · Issue #283 · buildkite/agent-stack-k8s · GitHub](https://github.com/buildkite/agent-stack-k8s/issues/283) for this.

Cheers,  
Arnstein
