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启动服务了。

posted @ 2020-08-07 12:26  AngDH  阅读(1723)  评论(0编辑  收藏  举报