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

Stop keeping container logs #29

Closed
ghost opened this issue Jul 6, 2015 · 5 comments
Closed

Stop keeping container logs #29

ghost opened this issue Jul 6, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 6, 2015

Docker currently keeps the complete log of the container, which we throw away anyhow since IPFS keeps its own logs. Docker 1.6 introduced the --log-driver option which we can set to none.

Ansible implements this in 2.0 which isn't released yet. Relevant commit: ansible/ansible-modules-core@718f32a

@ghost ghost added the solarnet label Jul 6, 2015
@jbenet
Copy link
Member

jbenet commented Jul 7, 2015

👍

@ghost ghost mentioned this issue Sep 9, 2015
@ghost
Copy link
Author

ghost commented Sep 9, 2015

It turns out that --log-driver can also be set for the docker daemon. I just did that manually on all gateway hosts and restarted the daemon afterwards.

I need to codify it, will do that later in the night.

@ghost
Copy link
Author

ghost commented Sep 9, 2015

Steps to reproduce:

$ ansible gateway -m shell -a 'echo DOCKER_OPTS="--log-driver=none" >> /etc/default/docker'
$ ansible gateway -f 1 -a 'restart docker'

@ghost
Copy link
Author

ghost commented Sep 10, 2015

Also did the same on all other nodes (util,metrics,storage)

@jbenet
Copy link
Member

jbenet commented Sep 14, 2015

Awesome, thanks.

@ghost ghost mentioned this issue Sep 14, 2015
41 tasks
@jbenet jbenet assigned ghost Sep 18, 2015
@ghost ghost closed this as completed in 5fc3ecd Sep 18, 2015
ghost pushed a commit that referenced this issue Sep 18, 2015
docker: disable container logs, closes #29
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant