Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #91 from ipfs/container-logs
Browse files Browse the repository at this point in the history
docker: disable container logs, closes #29
  • Loading branch information
Lars Gierth committed Sep 18, 2015
2 parents 1a68066 + 5fc3ecd commit 59d9aa3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solarnet/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
- hosts: all
pre_tasks:
- include_vars: secrets_plaintext/secrets.yml
handlers:
- include: roles/nginx/handlers/main.yml
roles:
- common
- docker
Expand Down
5 changes: 5 additions & 0 deletions solarnet/roles/docker/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: restart docker
service:
name: docker
state: restarted
16 changes: 16 additions & 0 deletions solarnet/roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,19 @@

- name: "create directory for containers"
file: path=/containers state=directory

# XXX migration
- lineinfile:
dest: /etc/default/docker
line: 'DOCKER_OPTS=--log-driver=none'
state: absent
notify:
- restart docker

- name: disable container logs
lineinfile:
dest: /etc/default/docker
line: 'DOCKER_OPTS="$DOCKER_OPTS --log-driver=none"'
state: present
notify:
- restart docker

0 comments on commit 59d9aa3

Please sign in to comment.