diff --git a/libpod/sqlite_state.go b/libpod/sqlite_state.go index 39296562fd..7c9c773a7f 100644 --- a/libpod/sqlite_state.go +++ b/libpod/sqlite_state.go @@ -316,8 +316,10 @@ func (s *SQLiteState) ValidateDBConfig(_ *Runtime) (defErr error) { return err } + // Ignoring prevents a race condition where multiple Podman processes + // might try to initialize the database at the same time. const createRow = ` - INSERT INTO DBconfig VALUES ( + INSERT OR IGNORE INTO DBconfig VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?