Difference between revisions of "Quick solve"
From DarkWiki
(→Ubuntu) |
(→Auto-start instances) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
This is a selection of problems that can be quickly solved. | This is a selection of problems that can be quickly solved. | ||
| − | == | + | ==Docker== |
| − | <code lang=bash> | + | ===Auto-start instances=== |
| + | |||
| + | To modify an existing container so that it restarts automatically: | ||
| + | |||
| + | <syntaxhighlight lang="bash"> | ||
| + | docker update --restart=always <container_name> | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | ==Ubuntu== | ||
| + | |||
| + | ===Too many network interfaces=== | ||
| + | |||
| + | If the following appears in <code>/var/log/syslog</code>: | ||
| + | |||
| + | <pre> | ||
| + | avahi-daemon[1113]: IP_ADD_MEMBERSHIP failed: No buffer space available | ||
| + | </pre> | ||
| + | |||
| + | It's probably because you've too many network interfaces. This can easily happen with docker. You can check your current configured maximum using this: | ||
| + | |||
| + | <syntaxhighlight lang="bash"> | ||
sysctl net.ipv4.igmp_max_memberships | sysctl net.ipv4.igmp_max_memberships | ||
| − | </ | + | </syntaxhighlight> |
| + | |||
| + | You can increase that amount using the following command: | ||
| + | |||
| + | <syntaxhighlight lang="bash"> | ||
| + | sysctl -w net.ipv4.igmp_max_memberships=50 | ||
| + | </syntaxhighlight> | ||
Latest revision as of 06:16, 15 August 2018
Introduction
This is a selection of problems that can be quickly solved.
Docker
Auto-start instances
To modify an existing container so that it restarts automatically:
docker update --restart=always <container_name>
Ubuntu
Too many network interfaces
If the following appears in /var/log/syslog:
avahi-daemon[1113]: IP_ADD_MEMBERSHIP failed: No buffer space available
It's probably because you've too many network interfaces. This can easily happen with docker. You can check your current configured maximum using this:
sysctl net.ipv4.igmp_max_memberships
You can increase that amount using the following command:
sysctl -w net.ipv4.igmp_max_memberships=50