feat: set default log driver for service containers to 'local' (#83)

This commit is contained in:
Zasda Yusuf Mikail authored and GitHub committed 2025-06-27 16:42:26 +10:00
1 parent 3b1ce42dd7
commit 1abadaef50
2 files changed
+11 -5

No files matched your search

-1
View File
@@ -62,7 +62,6 @@ func assertContainerMatchesSpec(t *testing.T, ctr api.ServiceContainer, spec api
assert.Equal(t, spec.Container.Init, ctr.HostConfig.Init)
assert.True(t, strings.HasPrefix(ctr.Name, spec.Name+"-"))
// If LogDriver is not set, any log driver set as default in the Docker daemon config could be used.
if spec.Container.LogDriver != nil {
assert.Equal(t, spec.Container.LogDriver.Name, ctr.HostConfig.LogConfig.Type)
assert.Equal(t, spec.Container.LogDriver.Options, ctr.HostConfig.LogConfig.Config)