aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-03-21 00:24:37 +0000
committerGerrit Code Review <review@openstack.org>2016-03-21 00:24:37 +0000
commit37e67ef3ed1be5c8dd5bca26772bbeb718d09a70 (patch)
tree30fbebd491c194443c26b8f0ab7779283f88c95f
parent783d17412d5d0b41735cfac3a5c2971c084ce3d2 (diff)
parentb9205399c5790013d925c822aa84b5ae9b352ea7 (diff)
downloadkolla-37e67ef3ed1be5c8dd5bca26772bbeb718d09a70.tar.gz
kolla-37e67ef3ed1be5c8dd5bca26772bbeb718d09a70.zip
Merge "Update quickstart doc to use drop-in unit files"
-rw-r--r--doc/quickstart.rst33
1 files changed, 14 insertions, 19 deletions
diff --git a/doc/quickstart.rst b/doc/quickstart.rst
index ea7271340..ef0ae708c 100644
--- a/doc/quickstart.rst
+++ b/doc/quickstart.rst
@@ -99,14 +99,19 @@ When running with systemd, setup docker-engine with the appropriate
information in the Docker daemon to launch with. This means setting up the
following information in the docker.service file. If you do not set the
MountFlags option correctly then Kolla-Ansible will fail to deploy the
-neutron-dhcp-agent container and throws APIError/HTTPError. After changing the
-service file, reload and restart the docker service:
+neutron-dhcp-agent container and throws APIError/HTTPError. After adding the
+drop-in unit file as follows, reload and restart the docker service:
::
- # /lib/systemd/system/docker.service
+ # Create the drop-in unit directory for docker.service
+ mkdir -p /etc/systemd/system/docker.service.d
+
+ # Create the drop-in unit file
+ tee /etc/systemd/system/docker.service.d/kolla.conf <<-'EOF'
[Service]
MountFlags=shared
+ EOF
# Run these commands to reload the daemon
systemctl daemon-reload
@@ -289,28 +294,18 @@ registry is currently running:
Docker Inc's packaged version of docker-engine for CentOS is defective and
does not read the other_args configuration options from
-"/etc/sysconfig/docker". To rectify this problem, set the contents of
-"/usr/lib/systemd/system/docker.service" to:
+"/etc/sysconfig/docker". To rectify this problem, ensure the
+following lines appear in the drop-in unit file at
+"/etc/systemd/system/docker.service.d/kolla.conf":
::
- [Unit]
- Description=Docker Application Container Engine
- Documentation=https://docs.docker.com
- After=network.target docker.socket
- Requires=docker.socket
-
[Service]
EnvironmentFile=/etc/sysconfig/docker
- Type=notify
+ # It's necessary to clear ExecStart before attempting to override it
+ # or systemd will complain that it is defined more than once.
+ ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// $other_args
- MountFlags=slave
- LimitNOFILE=1048576
- LimitNPROC=1048576
- LimitCORE=infinity
-
- [Install]
- WantedBy=multi-user.target
And restart docker by executing the following commands: