Closed qupfer closed 2 years ago
Hi, I'm trying to generate the docker files with the docker approuch, but it fails. Did I do something frong or miss/forget I something?
Thanks
qupfer@local ~/git/alma-docker-image (git)-[master] % sudo docker run --rm --privileged -v "$PWD:/build:z" \ -e KICKSTART_FILE=kickstarts/almalinux-8-default.ks \ -e IMAGE_NAME=almalinux-8-docker-default.x86_64.tar.gz \ -e OUTPUT_DIR=default \ -e BUILD_TYPE=default \ almalinux/ks2rootfs Build output files will be in './result_x86_64' folder ... Output directory ./result_x86_64 created successfully ks2rootfs - Script input summary: FLAGS ----- FLAG_OUTOUT_PWD : false FLAG_WRITE_META : false FLAG_RETAIN_LOG : false VARIABLES --------- BUILD_WORK_DIR : ./ OUTPUT_DIR : ./result_x86_64 BUILD_LOGDIR : ./result_x86_64/logs INPUT_KICKSTART : ./kickstarts/almalinux-8-default.ks OUTPUT_ROOTFS : ./result_x86_64/almalinux-8-docker-default.x86_64.tar.gz BUILD_COMPTYPE : xz BUILD_TYPE : default 2022-04-25 13:58:39,442: livemedia-creator v28.14.58-1 2022-04-25 13:58:39,442: selinux is Disabled 2022-04-25 13:58:39,495: disk_img = /var/tmp/almalinux-8-docker-default.x86_64.tar.gz 2022-04-25 13:58:39,495: Using disk size of 2MiB 2022-04-25 13:58:39,496: Running anaconda. 2022-04-25 13:58:39,839: Starting installer, one moment... 2022-04-25 13:58:39,839: terminal size detection failed, using default width 2022-04-25 13:58:39,839: 13:58:39 Deprecated boot argument 'loglevel' must be used with the 'inst.' prefix. Please use 'inst.loglevel' instead. 2022-04-25 13:58:39,839: 13:58:39 Anaconda boot arguments without 'inst.' prefix have been deprecated and will be removed in a future major release. 2022-04-25 14:08:41,551: anaconda 33.16.4.15-1.el8.alma.2 for Linux 8 (pre-release) started. 2022-04-25 14:08:41,551: 14:08:41 Service org.fedoraproject.Anaconda.Modules.Storage has failed to start: Failed to activate service 'org.fedoraproject.Anaconda.Modules.Storage': timed out (service_start_timeout=600000ms) 2022-04-25 14:08:51,631: Running anaconda failed: process '['anaconda', '--kickstart', '/build/kickstarts/almalinux-8-default.ks', '--cmdline', '--loglevel', 'debug', '--product', 'Kickstart to RootFS', '--dirinstall', '--remotelog', '127.0.0.1:33163']' exited with status 1 2022-04-25 14:08:51,638: Install failed: novirt_install failed 2022-04-25 14:08:51,638: ERROR: Image creation failed: novirt_install failed 2022-04-25 14:08:51,638: Image creation failed: novirt_install failed
Edit:
my docker version:
Client: Version: 20.10.14 API version: 1.41 Go version: go1.18 Git commit: a224086349 Built: Thu Mar 24 08:56:17 2022 OS/Arch: linux/amd64 Context: default Experimental: true Server: Engine: Version: 20.10.14 API version: 1.41 (minimum version 1.12) Go version: go1.18 Git commit: 87a90dc786 Built: Thu Mar 24 08:56:03 2022 OS/Arch: linux/amd64 Experimental: false containerd: Version: v1.6.2 GitCommit: de8046a5501db9e0e478e1c10cbcfb21af4c6b2d.m runc: Version: 1.1.1 GitCommit: docker-init: Version: 0.19.0 GitCommit: de40ad0
Found it, just need to mount /usr/lib/modules inside the docker, as ext4 support from the host system (arch linux) is in a kernel module.
Hi, I'm trying to generate the docker files with the docker approuch, but it fails. Did I do something frong or miss/forget I something?
Thanks
Edit:
my docker version: