feat(entrypoint): allow to override service ENTRYPOINT for run command

This commit is contained in:
Pavel Sviderski
2025-03-18 16:44:15 +10:00
parent e8715fce38
commit 1bbcfa8519
4 changed files with 34 additions and 16 deletions
+4 -3
View File
@@ -42,9 +42,10 @@ func (cli *Client) CreateContainer(
// TODO: calculate the spec hash and set it as a label to detect changes in the service spec.
config := &container.Config{
Cmd: spec.Container.Command,
Hostname: containerName,
Image: spec.Container.Image,
Cmd: spec.Container.Command,
Entrypoint: spec.Container.Entrypoint,
Hostname: containerName,
Image: spec.Container.Image,
Labels: map[string]string{
api.LabelServiceID: serviceID,
api.LabelServiceName: spec.Name,