Skip to content

[feature-request] support publishAll flag in container's command line #2517

@allencloud

Description

@allencloud

Ⅰ. Issue Description

In the #2500 (comment), we discussed about the flag publishAll or publicAll.

In https://github.com/alibaba/pouch/blob/master/cli/container.go#L68, we have field publicAll bool.

But I am afraid that we have not used this field in anywhere.

However, in Moby/Docker, we have https://github.com/docker/cli/blob/2634562119dd5b4e64d529d1aa5e16f760382d5f/cli/command/container/opts.go#L69:

publishAll         bool

And the flag :

flags.BoolVarP(&copts.publishAll, "publish-all", "P", false, "Publish all exposed ports to random ports")

Ⅱ. Describe what happened

no support publish-all flag

Ⅲ. Describe what you expected to happen

support publish-all flag

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions