From ecb4c46483a1b2a19c4f06b1d4616de66505e7bb Mon Sep 17 00:00:00 2001 From: redbeardymcgee Date: Sat, 25 Jan 2025 12:05:50 -0600 Subject: [PATCH] doc: add some sane defaults to template --- templates/template.container | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/template.container b/templates/template.container index d250623..e667a33 100644 --- a/templates/template.container +++ b/templates/template.container @@ -5,16 +5,16 @@ Wants= # (Optional) Services you want to run with this one After= # (Optional) Services that need to start before this one [Service] -Restart= # (Optional) Set to 'always' or 'on-failure' to restart on failure -TimeoutStartSec= # (Optional) Time to wait before considering a failure +Restart=on-failure # (Optional) Set to 'always' or 'on-failure' to restart on failure +TimeoutStartSec=900 # (Optional) Time to wait before considering a failure [Install] -WantedBy= # (Optional) Target to start with (default: multi-user.target). For graphical user interface systems default.target +WantedBy=default.target # (Optional) Target to start with (default: multi-user.target). For graphical user interface systems default.target [Container] Image= # (Mandatory) The container image to use (e.g., docker.io/library/alpine) ContainerName= # (Mandatory) The container's name -HostName= # (Optional) The containers hostname +AutoUpdate=registry AddCapability= # (Optional) Extra capabilities to add to the container AddDevice= # (Optional) Add host devices to the container @@ -25,6 +25,7 @@ UIDMap= # (Optional) User ID mapping. Example: 0:10000:10 (Inside:Outsid GIDMap= # (Optional) Group ID mapping Example: 0:10000:10 (Inside:Outside:Range) Network= # (Optional) Custom network for the container +HostName= # (Optional) The containers hostname PublishPort= # (Optional) Ports to expose (host:container) Volume= # (Optional) Persistent storage paths (host:container)