Skip to content

Commit

Permalink
change flags from --ports to --publish
Browse files Browse the repository at this point in the history
Signed-off-by: cpaasarch <yaofang.zjl@alibaba-inc.com>
  • Loading branch information
cpaasarch authored and fuweid committed Nov 21, 2018
1 parent 4d421ec commit ad4b9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/common_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func addCommonFlags(flagSet *pflag.FlagSet) *container {
flagSet.StringVar(&c.specificID, "specific-id", "", "Specify id of container, length of id should be 64, characters of id should be in '0123456789abcdef'")

flagSet.StringSliceVar(&c.networks, "net", nil, "Set networks to container")
flagSet.StringSliceVarP(&c.ports, "port", "p", nil, "Set container ports mapping")
flagSet.StringSliceVarP(&c.ports, "publish", "p", nil, "Set container ports mapping")
flagSet.StringSliceVar(&c.expose, "expose", nil, "Set expose container's ports")

flagSet.StringVar(&c.pidMode, "pid", "", "PID namespace to use")
Expand Down

0 comments on commit ad4b9b5

Please sign in to comment.