[OpenWrt-Devel] [PATCH 1/2] procd: add docker support

Petr Štetiar ynezz at true.cz
Fri May 24 00:39:52 PDT 2019


Paul Spooren <mail at aparcar.org> [2019-05-23 18:57:09]:

> root at dawn:/home/a# docker -v
> Docker version 18.09.6, build 481bc77

Latest seems to be 19.03.0-beta4[1].

> root at f62c16ac8fa3:/# ls -a .dockerenv
> .dockerenv
>
> root at f62c16ac8fa3:/# cat /proc/1/environ
> HOSTNAME=f62c16ac8fa3SHLVL=1HOME=/rootcontainer=lxcTERM=xtermPATH=/usr/sbin:/usr/bin:/sbin:/binPWD=/
> 
> So I'm guessing replace .dockerinit with .dockerenv should do the job?

Seems so, this file seems to be available[2] even in the current rc.

1. https://github.com/docker/docker-ce/blob/19.03/VERSION
2. https://github.com/docker/docker-ce/blob/1551262dc8542b5c9de78f3309b0e7b561328f40/components/engine/daemon/initlayer/setup_unix.go#L29

-- ynezz



More information about the openwrt-devel mailing list