CentOS7 设置Docker开机启动

作者: gavin 分类: Docker 发布时间: 2023-02-08 15:03

设置docker开机启动

root@localhost ~]# systemctl enable docker.service
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.

查看是否设置成功

[root@localhost ~]# systemctl list-unit-files | grep docker 
docker.service                                enabled