Skip to content
Snippets Groups Projects
Commit 1ae2b3c9 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Use /etc file to overwrite the docker.service file"

parents d1f61dfa 08985a0d
No related branches found
No related tags found
No related merge requests found
...@@ -49,8 +49,14 @@ sudo yum -y install libffi-devel openssl-devel docker-engine btrfs-progs ...@@ -49,8 +49,14 @@ sudo yum -y install libffi-devel openssl-devel docker-engine btrfs-progs
setup_disk setup_disk
# Setup Docker # Setup Docker
sudo sed -i -r 's,(ExecStart)=(.+),\1=/usr/bin/docker daemon --storage-driver btrfs,' /usr/lib/systemd/system/docker.service sudo mkdir /etc/systemd/system/docker.service.d
sudo sed -i 's|^MountFlags=.*|MountFlags=shared|' /usr/lib/systemd/system/docker.service sudo tee /etc/systemd/system/docker.service.d/kolla.conf << EOF
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --storage-driver btrfs
MountFlags=shared
EOF
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl start docker sudo systemctl start docker
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment