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
1 changed files with 4 additions and 0 deletions

4
dup.rb
View File

@ -19,6 +19,8 @@ MAPPINGS = [
['stop_signal', '--stop-signal'],
['stop_grace_period', '--stop-timeout'],
['devices', '--device'],
['net', '--net'],
['entrypoint', '--entrypoint'],
['image', nil],
['command', nil, {:escape=>false}]
]
@ -30,6 +32,7 @@ def get_sample(name="container")
image: "my/image:1.2.3"
restart: always
command: "/bin/bash"
entrypoint: "/script.sh"
build: "/data/dir"
pull: false
@ -51,6 +54,7 @@ def get_sample(name="container")
container_name: "Something"
mem_limit: 125M
stdin_open: false
net: host
tty: false
detach: true
remove: false