mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-11-02 11:27:19 +00:00
Support dhcpcd in one shot mode as well
This is needed for cloud environments that want to get their metadata in the onboot phase over the network. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -15,6 +15,17 @@ onboot:
|
||||
capabilities:
|
||||
- CAP_SYS_ADMIN
|
||||
readonly: true
|
||||
- name: dhcpcd
|
||||
image: "mobylinux/dhcpcd:0d4012269cb142972fed8542fbdc3ff5a7b695cd"
|
||||
binds:
|
||||
- /var:/var
|
||||
- /tmp:/etc
|
||||
capabilities:
|
||||
- CAP_NET_ADMIN
|
||||
- CAP_NET_BIND_SERVICE
|
||||
- CAP_NET_RAW
|
||||
net: host
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: metadata-gcp
|
||||
image: "mobylinux/metadata-gcp:7fc3dd5ef92e0408fb3f76048bbaae88bbb55ad9"
|
||||
binds:
|
||||
@@ -32,17 +43,6 @@ services:
|
||||
- CAP_SYS_ADMIN
|
||||
oomScoreAdj: -800
|
||||
readonly: true
|
||||
- name: dhcpcd
|
||||
image: "mobylinux/dhcpcd:3eb32da7ff8051f61e0f18edd90dd0fbfcf148ea"
|
||||
binds:
|
||||
- /var:/var
|
||||
- /tmp:/etc
|
||||
capabilities:
|
||||
- CAP_NET_ADMIN
|
||||
- CAP_NET_BIND_SERVICE
|
||||
- CAP_NET_RAW
|
||||
net: host
|
||||
oomScoreAdj: -800
|
||||
- name: sshd
|
||||
image: "mobylinux/sshd:160631d59fffc13d523ff7f09b3b49538d34b9cd"
|
||||
capabilities:
|
||||
|
||||
@@ -21,7 +21,7 @@ services:
|
||||
- CAP_SYS_ADMIN
|
||||
oomScoreAdj: -800
|
||||
- name: dhcpcd
|
||||
image: "mobylinux/dhcpcd:3eb32da7ff8051f61e0f18edd90dd0fbfcf148ea"
|
||||
image: "mobylinux/dhcpcd:0d4012269cb142972fed8542fbdc3ff5a7b695cd"
|
||||
binds:
|
||||
- /var:/var
|
||||
- /tmp:/etc
|
||||
|
||||
@@ -23,7 +23,7 @@ services:
|
||||
oomScoreAdj: -800
|
||||
readonly: true
|
||||
- name: dhcpcd
|
||||
image: "mobylinux/dhcpcd:3eb32da7ff8051f61e0f18edd90dd0fbfcf148ea"
|
||||
image: "mobylinux/dhcpcd:0d4012269cb142972fed8542fbdc3ff5a7b695cd"
|
||||
binds:
|
||||
- /var:/var
|
||||
- /tmp:/etc
|
||||
|
||||
Reference in New Issue
Block a user