Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman pod create --infra-command: does not seem to be working #7673

Closed
edsantiago opened this issue Sep 17, 2020 · 2 comments · Fixed by #7675
Closed

podman pod create --infra-command: does not seem to be working #7673

edsantiago opened this issue Sep 17, 2020 · 2 comments · Fixed by #7675
Assignees
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@edsantiago
Copy link
Member

I think #7621 may have been incompletely tested?

$ ./bin/podman pod create --name=mypod --infra-command=/pause
c572562a28a4c5fe6c5b61cec38144aeb127efc76f2892ea71801aa8ae9225d7
$ ./bin/podman run --pod mypod alpine true
Error: cannot get namespace path unless container 39ce86bd690311fb5501a944b210ebca346b86a990b439ad6f8386ac6821bdca is running: container is stopped
$ ./bin/podman logs 39c
{"msg":"executable path not specified","level":"error","time":"2020-09-17T14:59:59.000091139Z"}
$  ./bin/podman inspect --format '{{.Config.Entrypoint}}' 39c
/pause

master @ 031ddf9; rootless on f32

@vrothberg
Copy link
Member

@rhatdan PTAL

@edsantiago
Copy link
Member Author

FWIW I see one difference between podman pod create and podman pod create --infra-command=/pause:

This is a normal, good, infra container:

$ ./bin/podman inspect 9db --format '{{.Path}}:{{.Args}}'
/pause:[/pause]

This is with --infra-command=/pause (which should theoretically be a NOP):

$ ./bin/podman inspect 5e2 --format '{{.Path}}:{{.Args}}'
:[] 

@zhangguanzhang zhangguanzhang self-assigned this Sep 17, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants