mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 04:06:33 +02:00
feat(app-emulation/docker): use the coreos unit file
On CoreOS we use systemd to manage docker containers. Having docker automatically start containers on reboot makes everything confused. Stop doing this.
This commit is contained in:
parent
22f3f5b953
commit
09b4f91633
@ -119,7 +119,7 @@ src_install() {
|
||||
newinitd contrib/init/openrc/docker.initd docker
|
||||
newconfd contrib/init/openrc/docker.confd docker
|
||||
|
||||
systemd_dounit contrib/init/systemd/docker.service
|
||||
systemd_dounit "${FILESDIR}/docker.service"
|
||||
|
||||
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
|
||||
if use doc; then
|
||||
|
||||
13
sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service
vendored
Normal file
13
sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Docker Application Container Engine
|
||||
Documentation=http://docs.docker.io
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/bin/mount --make-rprivate /
|
||||
# Run docker but don't have docker automatically restart
|
||||
# containers. This is a job for systemd and unit files.
|
||||
ExecStart=/usr/bin/docker -d -r=false
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
x
Reference in New Issue
Block a user