Difference between revisions of "Quick solve"

From DarkWiki
Jump to: navigation, search
(Ubuntu)
(Auto-start instances)
 
(2 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.
  
===Ubuntu===
+
==Docker==
 +
 
 +
===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>:
 
If the following appears in <code>/var/log/syslog</code>:
Line 11: Line 23:
 
</pre>
 
</pre>
  
It's probably because you've too many network interfaces. You can check your current configured maximum using this:
+
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">
 
<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>
 
</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