Container Infrastructure Management Service for OpenStack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

add-docker-daemon-options.sh 619B

123456789101112131415161718
  1. #!/bin/sh
  2. . /etc/sysconfig/heat-params
  3. opts="-H fd:// -H tcp://0.0.0.0:2375 "
  4. if [ "$TLS_DISABLED" = 'False' ]; then
  5. opts=$opts"--tlsverify --tlscacert=/etc/docker/ca.crt "
  6. opts=$opts"--tlskey=/etc/docker/server.key "
  7. opts=$opts"--tlscert=/etc/docker/server.crt "
  8. fi
  9. sed -i '/^OPTIONS=/ s#\(OPTIONS='"'"'\)#\1'"$opts"'#' /etc/sysconfig/docker
  10. # NOTE(tobias-urdin): The live restore option is only for standalone daemons.
  11. # If its specified the swarm init will fail so we remove it here.
  12. # See: https://docs.docker.com/config/containers/live-restore
  13. sed -i 's/\ --live-restore//g' /etc/sysconfig/docker