BK: Set docker version
Restart docker after installing our version.
@@ -7,3 +7,8 @@ sudo ln -s /dev/shm/ /run/shm
# Install docker 18.06
sudo yum install docker-18.06* -y
+sudo systemctl restart docker
+
+DOCKER_VERSION="$(docker version --format '{{.Server.Version}}')"
+sudo sed -i -r "s/\\<(docker=)[^,]+/\\1${DOCKER_VERSION}/" /etc/buildkite-agent/buildkite-agent.cfg
+sudo systemctl reload buildkite-agent@*
