kas-docker: Podman: Fixing isar builds failing with exec format errors
When trying to run kas-docker with --isar on podman the build fails with some "exec format" errors when the target has a different architecture than the host. The reason is that /proc/sys/fs/binfmt_misc is not mounted as expected inside the container. The way the /proc filesystem is mounted seems to differ between podman and docker. See [1] for the podman issue tracker. This is a temporary fix and should be removed when the upstream issue was resolved. [1] https://github.com/containers/podman/issues/4725 Signed-off-by: Florian Bezdeka <florian@bezdeka.de> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
		
				
					committed by
					
						
						Jan Kiszka
					
				
			
			
				
	
			
			
			
						parent
						
							7ac9debaff
						
					
				
				
					commit
					6b025e4910
				
			@@ -116,6 +116,7 @@ while [ $# -gt 0 ]; do
 | 
				
			|||||||
		podman)
 | 
							podman)
 | 
				
			||||||
			# sudo is needed for a privileged podman container
 | 
								# sudo is needed for a privileged podman container
 | 
				
			||||||
			DOCKER_COMMAND="sudo ${DOCKER_COMMAND}"
 | 
								DOCKER_COMMAND="sudo ${DOCKER_COMMAND}"
 | 
				
			||||||
 | 
								ISAR_ARGS="${ISAR_ARGS} --pid=host"
 | 
				
			||||||
			;;
 | 
								;;
 | 
				
			||||||
		esac
 | 
							esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user