generate: container: Fix Ports.command
The long option is --publish, not --ports... Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
acacf19a12
commit
76b8728fec
1 changed files with 2 additions and 2 deletions
|
@ -431,11 +431,11 @@ class Ports:
|
|||
ports = ""
|
||||
seperator = " \\\n"
|
||||
ports += seperator.join(
|
||||
[f"\t--port {port}/tcp" for port in self.tcp_ports]
|
||||
[f"\t--publish {port}/tcp" for port in self.tcp_ports]
|
||||
)
|
||||
ports += seperator
|
||||
ports += seperator.join(
|
||||
[f"\t--port {port}/udp" for port in self.udp_ports]
|
||||
[f"\t--publish {port}/udp" for port in self.udp_ports]
|
||||
)
|
||||
ports += seperator
|
||||
return ports
|
||||
|
|
Loading…
Add table
Reference in a new issue