Append instead of replace file contents

I think the `DOCKER_OPTS` should be appended to `/etc/default/docker` and not replace the entire contents.
Merge pull request #8023 from nerab/patch-1

Append instead of replace file contents