Added support for --net and --entrypoint.
This commit is contained in:
parent
e8bea498d8
commit
7a1c8e5417
4
dup.rb
4
dup.rb
@ -19,6 +19,8 @@ MAPPINGS = [
|
|||||||
['stop_signal', '--stop-signal'],
|
['stop_signal', '--stop-signal'],
|
||||||
['stop_grace_period', '--stop-timeout'],
|
['stop_grace_period', '--stop-timeout'],
|
||||||
['devices', '--device'],
|
['devices', '--device'],
|
||||||
|
['net', '--net'],
|
||||||
|
['entrypoint', '--entrypoint'],
|
||||||
['image', nil],
|
['image', nil],
|
||||||
['command', nil, {:escape=>false}]
|
['command', nil, {:escape=>false}]
|
||||||
]
|
]
|
||||||
@ -30,6 +32,7 @@ def get_sample(name="container")
|
|||||||
image: "my/image:1.2.3"
|
image: "my/image:1.2.3"
|
||||||
restart: always
|
restart: always
|
||||||
command: "/bin/bash"
|
command: "/bin/bash"
|
||||||
|
entrypoint: "/script.sh"
|
||||||
build: "/data/dir"
|
build: "/data/dir"
|
||||||
pull: false
|
pull: false
|
||||||
|
|
||||||
@ -51,6 +54,7 @@ def get_sample(name="container")
|
|||||||
container_name: "Something"
|
container_name: "Something"
|
||||||
mem_limit: 125M
|
mem_limit: 125M
|
||||||
stdin_open: false
|
stdin_open: false
|
||||||
|
net: host
|
||||||
tty: false
|
tty: false
|
||||||
detach: true
|
detach: true
|
||||||
remove: false
|
remove: false
|
||||||
|
Loading…
Reference in New Issue
Block a user