diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-0.7.1.ebuild b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-0.7.1.ebuild index 29532ca0fa..8a0797dd55 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-0.7.1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/docker-0.7.1.ebuild @@ -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 diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service new file mode 100644 index 0000000000..6e2067a17f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service @@ -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