spiegel_podman/pkg
荒野無燈 194723f314
force run container detached if container CreateCommand missing the detach param
the podman generated systemd service file has `Type=forking` service,
so the command after `ExecStart=` should not run in front.
if someone created a container and has the detach(`-d`) param missing
like this
```
podman create --name ngxdemo -P nginxdemos/hello
```
and generate the file with `--new` param:
```
podman generate systemd --name --new ngxdemo
```
because `podman run xxx` has no `-d` param,
so the container is not run in background and nerver exit.
and systemd will fail to start the service:
```
sudo systemctl start container-ngxdemo.service
Job for container-ngxdemo.service failed because a timeout was exceeded.
See "systemctl status container-ngxdemo.service" and "journalctl -xe" for details.
```

Signed-off-by: 荒野無燈 <ttys3@outlook.com>
2020-03-14 21:54:12 +08:00
..
adapter Merge pull request #4772 from boaz0/closes_4628 2020-03-04 10:58:10 -05:00
annotations Add ContainerManager annotation to created containers 2019-09-10 09:37:14 +02:00
api Fix spelling mistakes in code found by codespell 2020-03-07 10:30:44 -05:00
apparmor golangci: enable goimports 2020-03-05 20:03:44 +01:00
bindings Fix spelling mistakes in code found by codespell 2020-03-07 10:30:44 -05:00
cgroups stats: add SystemUsage 2020-02-12 11:58:29 +01:00
channelwriter account for varlink calls that dont use more 2019-07-10 08:50:05 -05:00
criu Add helper function to read out CRIU version 2018-10-23 12:52:03 +02:00
ctime Re-add int64 casts for ctime 2019-07-23 15:43:40 -04:00
env Merge pull request #5381 from vrothberg/ENVFIX 2020-03-04 13:26:48 -05:00
errorhandling first pass of corrections for golangci-lint 2019-07-10 15:52:17 -05:00
hooks golangci: enable goimports 2020-03-05 20:03:44 +01:00
inspect consolidate env handling into pkg/env 2020-03-03 11:47:24 +01:00
kubeutils Remove dependency on kubernetes 2018-03-27 21:55:33 +00:00
logs first pass of corrections for golangci-lint 2019-07-10 15:52:17 -05:00
lookup golangci: enable goimports 2020-03-05 20:03:44 +01:00
namespaces namespaces: by default create cgroupns on cgroups v2 2019-11-05 17:29:01 +01:00
netns network: hide EPERM warning when rootless 2019-10-01 08:51:58 +02:00
network network create should use firewall plugin 2020-02-27 14:39:31 -06:00
registrar Update registrar unit tests to match them of cri-o 2019-04-04 08:53:32 +02:00
registries podman: mirror information 2019-12-12 19:53:46 -03:00
resolvconf Use host's resolv.conf if no network namespace enabled 2018-11-27 15:28:09 -05:00
rootless Merge pull request #5324 from giuseppe/fix-running-no-pause 2020-02-25 21:16:26 +01:00
rootlessport rootlessport: drop Pdeathsig in favor of Kill 2020-02-12 18:48:42 +01:00
seccomp apiv2 container create using specgen 2020-02-19 15:20:15 -06:00
signal add pkg/signal 2020-02-14 15:04:14 +01:00
spec Fix spelling mistakes in code found by codespell 2020-03-07 10:30:44 -05:00
specgen add default network for apiv2 create 2020-03-06 14:31:45 -06:00
sysinfo Setup a reasonable default for pids-limit 4096 2019-10-04 16:09:13 -04:00
systemd force run container detached if container CreateCommand missing the detach param 2020-03-14 21:54:12 +08:00
timetype make lint: enable gocritic 2020-01-13 14:27:02 +01:00
tracing make lint: include pkg/tracing 2020-01-14 09:54:48 +01:00
trust codespell: spelling corrections 2019-11-13 08:15:00 +11:00
util Allow users to set TMPDIR environment 2020-03-06 10:21:37 -05:00
varlinkapi Add network options to podman pod create 2020-02-19 11:29:30 -05:00