Try to fix docker config when needed for tests.