Why docker command included in the cron job is not working as expected in Red Hat Enterprise Linux 7 ?
Issue
- Why docker command included in the cron job is not working as expected in Red Hat Enterprise Linux 7 ?
Example: Cron job configured for a non root user
5 15 * * * sudo docker exec rhel7 sh -c "ps aux"
Environment
- Red Hat Enterprise Linux 7
- Sudo configured for non root users
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
