How to use systemctl in Ubuntu 14.04

前端 未结 4 1600
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-31 09:35

I try to perform the following command in Ubuntu 14.04:

systemctl enable --now docker-cleanup-dangling-images.timer

I also tried it with sudo,

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-31 09:50

    So you want to remove dangling images? Am I correct?

    systemctl enable docker-container-cleanup.timer
    systemctl start docker-container-cleanup.timer
    systemctl enable docker-image-cleanup.timer 
    systemctl start docker-image-cleanup.timer
    

    https://github.com/larsks/docker-tools/tree/master/docker-maintenance-units

提交回复
热议问题