Added support for --net and --entrypoint.

This commit is contained in:
Fabian Schlenz 2017-09-25 09:26:18 +02:00
parent e8bea498d8
commit 7a1c8e5417

4
dup.rb
View File

@ -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