mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-03 14:36:06 +00:00
Error if there are duplicate service names
Continue to allow onboot to have duplicates as we do not run simultaneously so that is ok (and we number them anyway), but services are run together so we will get a runtime error if duplicated as this is the containerd/runc id. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -199,7 +199,10 @@ func build(args []string) {
|
||||
if err != nil {
|
||||
log.Fatalf("Invalid config: %v", err)
|
||||
}
|
||||
m = moby.AppendConfig(m, c)
|
||||
m, err = moby.AppendConfig(m, c)
|
||||
if err != nil {
|
||||
log.Fatalf("Cannot append config files: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
if *buildDisableTrust {
|
||||
|
||||
Reference in New Issue
Block a user