spotify / docker-gc

INACTIVE: Docker garbage collection of containers and images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

/usr/bin/docker-gc: line 63: pidof: command not found

GoodHaHa opened this issue · comments

Description

/usr/bin/docker-gc: line 63: pidof: command not found

How to reproduce

docker-gc script run as a cron job

What do you expect

No command not found report

What happened instead

The PATH is incomplete

Software:

  • bash version:
# bash --version
GNU bash, version 4.2.46(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.