21055: Don't exit when failing to set inotify.max_user_watches.
[arvados.git] / lib / install / deps.go
index 263f0180976c4e55d05f1f6f992cb84d4d556d41..076a4e2b6a172f42bbf2063626a39a86c49195c8 100644 (file)
@@ -268,7 +268,9 @@ if ! grep -F -- "$add" /etc/sysctl.conf; then
 fi
 `, stdout, stderr)
                if err != nil {
-                       return 1
+                       // Just warn instead of fail because this is expected when running
+                       // inside Docker.
+                       logger.Warnf("couldn't set fs.inotify.max_user_watches value: %w", err)
                }
        }