docker: various utils not found in $PATH

Elan Ruusamäe glen at delfi.ee
Sat Mar 31 14:12:53 CEST 2018


On 26/03/2018 04:52, Tomasz Pala wrote:

> On Sun, Mar 25, 2018 at 23:28:58 +0300, Elan Ruusamäe wrote:
>
>>> msg="devmapper: Error while creating filesystem ext4 on device docker-9:2-1199725-base: exec: \"mkfs.ext4\": executable file not found in $PATH"
>>> msg="[graphdriver] prior storage driver devicemapper failed: exec: \"mkfs.ext4\": executable file not found in $PATH"
>>> exec: "mkfs.ext4": executable file not found in $PATH
>>> exec: "tune2fs": executable file not found in $PATH
>>> error: exec: \"modprobe\": executable file not found in $PATH"
>> docker version? are your running under systemd?
> Current: docker-ce-17.12.0-1.x86_64, under older systemd-232-7.
>
>> what is the $PATH of dockerd environ?
>>
>> # cat /proc/`pidof dockerd`/environ|tr '\0' '\n'|grep PATH
>> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
>
so, the intermediate fix is to figure out why the PATH of yours is 
without /sbin and /boin


More information about the pld-devel-en mailing list