Justin Cormack
2c7628c101
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 >
2017-04-11 14:58:57 +01:00
Justin Cormack
0a030dc219
Clean up dhcpcd container
...
It is not necessary to bring up `eth0`, the program does it fine.
This means we can remove shell script, clean up build.
Signed-off-by: Justin Cormack <justin.cormack@docker.com >
2017-04-06 15:32:22 +01:00
Ian Campbell
8270bdfe33
Use exec in a couple of places to avoid needless lingering /bin/sh processes
...
```
$ apk -U add procps
$ ps xf
1 ? Ss 0:05 /sbin/init
357 ? Ss 0:00 /bin/sh /etc/init.d/containerd
359 ? Sl 0:00 \_ /usr/bin/containerd
360 ? Ss 0:00 /bin/sh /etc/init.d/containers
432 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/swa
466 ? Ssl 0:00 | \_ /usr/bin/swarmd --containerd-addr=/run/contai
427 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/dhc
457 ? Ss 0:00 | \_ bin/sh /usr/local/bin/start_dhcpcd.sh
474 ? S 0:00 | \_ /sbin/dhcpcd --nobackground
429 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/rng
576 ? Ss 0:00 \_ /bin/tini /usr/sbin/rngd -f
580 ? S 0:00 \_ /usr/sbin/rngd -f
```
becomes
```
$ ps xf
1 ? Ss 0:06 /sbin/init
358 ? Ss 0:00 /bin/sh /etc/init.d/containers
426 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/dhc
458 ? Ss 0:00 | \_ /sbin/dhcpcd --nobackground
431 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/swa
460 ? Ssl 0:00 | \_ /usr/bin/swarmd --containerd-addr=/run/contai
428 ? Sl 0:00 \_ /usr/bin/runc run --bundle /containers/daemon/rng
574 ? Ss 0:00 \_ /bin/tini /usr/sbin/rngd -f
578 ? S 0:00 \_ /usr/sbin/rngd -f
356 ? Ssl 0:00 /usr/bin/containerd
```
Specifically these are gone:
357 ? Ss 0:00 /bin/sh /etc/init.d/containerd
457 ? Ss 0:00 | \_ bin/sh /usr/local/bin/start_dhcpcd.sh
Signed-off-by: Ian Campbell <ian.campbell@docker.com >
2017-04-06 09:34:38 +01:00
Riyaz Faizullabhoy
a33b9ff4b1
dhcpcd system container
...
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com >
2017-04-04 08:23:47 -07:00