问题原文
原帖链接 · Chris · CC BY-SA 3.0
I have a vanilla install of CoreOS (835.9.0) and it doesn't start the docker daemon on startup. It only starts when I SSH in and do eg docker ps.
How can i make the docker daemon automatically start on system boot?
When i say the docker daemon, i mean ps -ef | grep docker shows no processes until after i do docker ps
社区高分解答
原帖链接 · captncraig · CC BY-SA 3.0
This is a bit old now, but I have started using cloud-init to do this on all new servers. I have a saved cloud-init script I use for all my servers. Part of it contains:
#cloud-config
coreos:
units:
- name: "docker.service"
command: "start"
enable: true
This will enable the docker service and start it on first and each boot.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
