文章目录 1、网络问题2、 安装 1、网络问题 当无法在容器中下载cron命令时,设置容器为host模式,则直接使用宿主机网络 services: ubuntu_test: ... network_mode: host 2、 安装 安装 cron apt update && apt install -y cron service cron start 确保 cron 运行 service cron restart crontab -l ps aux | grep cron