mirror of
https://github.com/containers/podman.git
synced 2025-10-17 11:14:40 +08:00
do not set the CreateCommand for API users
This should be set only by podman as it is used for the podman generate systemd --new command. For the api it was set to the system service command which is simply pointless. It must be empty in these cases. Fixes #25026 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -550,12 +550,6 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *entities.ContainerCreateOptions
|
||||
s.Entrypoint = entrypoint
|
||||
}
|
||||
|
||||
// Include the command used to create the container.
|
||||
|
||||
if len(s.ContainerCreateCommand) == 0 {
|
||||
s.ContainerCreateCommand = os.Args
|
||||
}
|
||||
|
||||
if len(inputCommand) > 0 {
|
||||
s.Command = inputCommand
|
||||
}
|
||||
|
Reference in New Issue
Block a user