docker 容器里使用crontab不生效

https://blog.csdn.net/zhenliang8/article/details/78330658


创建容器:

# docker run -d -name centos7 --privileged=true centos:7 /usr/sbin/init

进入容器:

# docker exec -it centos7 /bin/bash

这样可以使用systemctl启动服务了。

原文地址:https://www.cnblogs.com/angdh/p/13452066.html