Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
37e67ef3
Commit
37e67ef3
authored
9 years ago
by
Jenkins
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Update quickstart doc to use drop-in unit files"
parents
783d1741
b9205399
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/quickstart.rst
+14
-19
14 additions, 19 deletions
doc/quickstart.rst
with
14 additions
and
19 deletions
doc/quickstart.rst
+
14
−
19
View file @
37e67ef3
...
@@ -99,14 +99,19 @@ When running with systemd, setup docker-engine with the appropriate
...
@@ -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
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
following information in the docker.service file. If you do not set the
MountFlags option correctly then Kolla-Ansible will fail to deploy the
MountFlags option correctly then Kolla-Ansible will fail to deploy the
neutron-dhcp-agent container and throws APIError/HTTPError. After
chang
ing the
neutron-dhcp-agent container and throws APIError/HTTPError. After
add
ing the
service file
, reload and restart the docker service:
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]
[Service]
MountFlags=shared
MountFlags=shared
EOF
# Run these commands to reload the daemon
# Run these commands to reload the daemon
systemctl daemon-reload
systemctl daemon-reload
...
@@ -289,28 +294,18 @@ registry is currently running:
...
@@ -289,28 +294,18 @@ registry is currently running:
Docker Inc's packaged version of docker-engine for CentOS is defective and
Docker Inc's packaged version of docker-engine for CentOS is defective and
does not read the other_args configuration options from
does not read the other_args configuration options from
"/etc/sysconfig/docker". To rectify this problem, set the contents of
"/etc/sysconfig/docker". To rectify this problem, ensure the
"/usr/lib/systemd/system/docker.service" to:
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]
[Service]
EnvironmentFile=/etc/sysconfig/docker
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
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:
And restart docker by executing the following commands:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment