-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Document containers.conf settings for remote connections #8285
Document containers.conf settings for remote connections #8285
Conversation
@rhatdan test aren't hip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
4ea8e1f
to
8b8b1b7
Compare
8b8b1b7
to
97ee1ba
Compare
@containers/podman-maintainers PTAL |
On my review list for tomorrow. Brain isn't sharp enough to review so many line changes. |
cmd/podman/common/create.go
Outdated
@@ -791,3 +791,66 @@ func DefineCreateFlags(cmd *cobra.Command, cf *ContainerCLIOpts) { | |||
_ = cmd.RegisterFlagCompletionFunc(cgroupConfFlagName, completion.AutocompleteNone) | |||
|
|||
} | |||
|
|||
func ulimits() []string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we move these into a new file create_flag_defaults.go
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather then create a fourth create*.go file, how about I move them to create_opts.go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -18,6 +18,10 @@ any point. | |||
|
|||
The initial status of the container created with **podman create** is 'created'. | |||
|
|||
Default settings for flags are defined in `containers.conf`. Most settings for | |||
Remote connections use the server's containers.conf, except when documented in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remote connections use the server's containers.conf, except when documented in | |
remote connections use the server's containers.conf, except when documented in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@@ -817,6 +821,7 @@ Signal to stop a container. Default is SIGTERM. | |||
#### **--stop-timeout**=*seconds* | |||
|
|||
Timeout (in seconds) to stop a container. Default is 10. | |||
Remote connections, use local containers.conf for defaults |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the comma is wrong but I also have a hard time understanding it. Are we using the server or client conf? Maybe we can always speak about server and client?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some cases are left
"path/filepath" | ||
"strings" | ||
|
||
"github.com/containers/buildah/pkg/parse" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like another candidate for c/common?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do this in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awsome, thanks!
ReadWrite bool | ||
} | ||
|
||
func GenVolumeMounts(volumeFlag []string) (map[string]spec.Mount, map[string]*NamedVolume, map[string]*OverlayVolume, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doc comments are missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
3513133
to
2784ed2
Compare
@giuseppe @mheon @edsantiago Any idea what is going on here. Ubuntu (cgroupv1 pod_stats_test,go is blowing up, even though these tests were not touched. [+1082s] Error: unable to obtain cgroup stats: open /sys/fs/cgroup/pids/pids.current: no such file or directory Have you ever seen anything like this before? |
I just saw and reported the same thing in 8170. Pressing Re-run made it go away, which does not fill me with warm fuzzies. |
2784ed2
to
b9e6b32
Compare
Currently we don't document which end of the podman-remote client server operations uses the containers.conf. This PR begins documenting this and then testing to make sure the defaults follow the rules. Fixes: containers#7657 Signed-off-by: Daniel J Walsh <[email protected]>
b9e6b32
to
9770947
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhatdan, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Currently we don't document which end of the podman-remote client server
operations uses the containers.conf. This PR begins documenting this
and then testing to make sure the defaults follow the rules.
Fixes: #7657
Signed-off-by: Daniel J Walsh [email protected]