 555ea3fb43
			
		
	
	555ea3fb43
	
	
	
		
			
			When running containerd inside LXC, due to systemd being unable to execute `modprobe overlay` inside the container (module is already loaded in host kernel). This patch adds a `-` prefix to the `ExecStartPre` command, so that failures are ignored, and the service can start as usual. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
		
			
				
	
	
		
			23 lines
		
	
	
		
			611 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			611 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
| [Unit]
 | |
| Description=containerd container runtime
 | |
| Documentation=https://containerd.io
 | |
| After=network.target
 | |
| 
 | |
| [Service]
 | |
| ExecStartPre=-/sbin/modprobe overlay
 | |
| ExecStart=/usr/local/bin/containerd
 | |
| 
 | |
| Delegate=yes
 | |
| KillMode=process
 | |
| # Having non-zero Limit*s causes performance problems due to accounting overhead
 | |
| # in the kernel. We recommend using cgroups to do container-local accounting.
 | |
| LimitNPROC=infinity
 | |
| LimitCORE=infinity
 | |
| LimitNOFILE=infinity
 | |
| # Comment TasksMax if your systemd version does not supports it.
 | |
| # Only systemd 226 and above support this version.
 | |
| TasksMax=infinity
 | |
| 
 | |
| [Install]
 | |
| WantedBy=multi-user.target
 |