Qarik-Group / bucc

The fastest way to get a BUCC (BOSH, UAA Credhub and Concourse)
Apache License 2.0
135 stars 46 forks source link

Enable docker restart policy for bucc deployed with docker cpi #161

Closed salsa-dev closed 4 years ago

salsa-dev commented 5 years ago

After bucc up --cpi docker the docker container starts.

If the machine is rebooted or the docker service is restarted the bucc container doesn't restart.

Suggestion is to enable usage of docker restart policy as descibed here https://docs.docker.com/config/containers/start-containers-automatically/

salsa-dev commented 5 years ago

It took me a bit of time to find out the way configuration from BUCC goes to Docker CPI. Here is the config that works: vim src/bosh-deployment/docker/cpi.yml

- type: replace
  path: /resource_pools/name=vms/cloud_properties?
  value:
    restartpolicy:
      name: always
ramonskie commented 5 years ago

i think this should be fixed in the upstream bosh-deployment so i would recommand to create a PR for them

ramonskie commented 5 years ago

any update on this?

ramonskie commented 4 years ago

closing due no activity please reopen if problem still remains