mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 10:00:01 +08:00 
			
		
		
		
	image lookup: do not match *any* tags
For reasons buried in the history of Podman, looking up an untagged image would match any tag of matching image. For instance, looking up centos would match a local image centos:foobar. Change that behavior to only match the latest tag. Fix: #11964 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
		
							
								
								
									
										5
									
								
								vendor/github.com/containers/common/pkg/config/default.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								vendor/github.com/containers/common/pkg/config/default.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -190,6 +190,7 @@ func DefaultConfig() (*Config, error) { | ||||
| 			IPCNS:              "private", | ||||
| 			LogDriver:          defaultLogDriver(), | ||||
| 			LogSizeMax:         DefaultLogSizeMax, | ||||
| 			NetNS:              "private", | ||||
| 			NoHosts:            false, | ||||
| 			PidsLimit:          DefaultPidsLimit, | ||||
| 			PidNS:              "private", | ||||
| @ -225,7 +226,7 @@ func defaultSecretConfig() SecretConfig { | ||||
| func defaultMachineConfig() MachineConfig { | ||||
| 	return MachineConfig{ | ||||
| 		CPUs:     1, | ||||
| 		DiskSize: 10, | ||||
| 		DiskSize: 100, | ||||
| 		Image:    "testing", | ||||
| 		Memory:   2048, | ||||
| 	} | ||||
| @ -243,6 +244,8 @@ func defaultConfigFromMemory() (*EngineConfig, error) { | ||||
|  | ||||
| 	c.EventsLogFilePath = filepath.Join(c.TmpDir, "events", "events.log") | ||||
|  | ||||
| 	c.CompatAPIEnforceDockerHub = true | ||||
|  | ||||
| 	if path, ok := os.LookupEnv("CONTAINERS_STORAGE_CONF"); ok { | ||||
| 		types.SetDefaultConfigFilePath(path) | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Valentin Rothberg
					Valentin Rothberg