Container start-up fails
Opened this issue · 3 comments
Nuc1eoN commented
Hey first of all thanks for your work!
I've build the image succefully however I am unable to instantiate the container:
$ podman run -d --rm --publish 127.0.0.1:9000:9000 --volume ~/.thelounge:/var/opt/thelounge:Z --env USER --name thelounge thelounge
Error: container_linux.go:349: starting container process caused "exec: \"/usr/bin/thelounge\": stat /usr/bin/thelounge: no such file or directory": OCI runtime command not found error
dotmjs commented
Looks like TheLounge upstream changed the default location of the executable from /usr/bin to /usr/local/bin . I've update the entrypoint in the Dockerfile. Please pull and let me know if it resolves your issue.
Nuc1eoN commented
Thanks @dotmjs
This is giving me an error during build
podman build -t thelounge-ubi8 . -f thelounge.Dockerfile
STEP 1: FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
STEP 2: RUN microdnf install -y nodejs
(microdnf:1): librhsm-WARNING **: 23:32:26.554: Found 0 entitlement certificates
(microdnf:1): librhsm-WARNING **: 23:32:26.564: Found 0 entitlement certificates
(microdnf:1): libdnf-WARNING **: 23:32:26.567: Loading "/etc/dnf/dnf.conf": IniParser: Can't open file
Downloading metadata...
Downloading metadata...
Downloading metadata...
Package Repository Size
Installing:
nodejs-1:10.21.0-3.module+el8.2.0+7071+d2377ea3.x86_64 ubi-8-appstream 9.3 MB
nodejs-full-i18n-1:10.21.0-3.module+el8.2.0+7071+d2377ea3.x86_64 ubi-8-appstream 7.6 MB
npm-1:6.14.4-1.10.21.0.3.module+el8.2.0+7071+d2377ea3.x86_64 ubi-8-appstream 4.0 MB
Transaction Summary:
Installing: 3 packages
Reinstalling: 0 packages
Upgrading: 0 packages
Removing: 0 packages
Downgrading: 0 packages
Downloading packages...
Running transaction test...
Installing: nodejs-full-i18n;1:10.21.0-3.module+el8.2.0+7071+d2377ea3;x86_64;ubi-8-appstream
Installing: nodejs;1:10.21.0-3.module+el8.2.0+7071+d2377ea3;x86_64;ubi-8-appstream
Installing: npm;1:6.14.4-1.10.21.0.3.module+el8.2.0+7071+d2377ea3;x86_64;ubi-8-appstream
Complete.
Error: error committing container for step {Env:[PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin container=oci] Command:run Args:[microdnf install -y nodejs] Flags:[] Attrs:map[] Message:RUN microdnf install -y nodejs Original:RUN microdnf install -y nodejs}: error copying layers and metadata for container "4a1a9144adc53d321a14db1ea7c660eb341f8a8dd035a823455972748f5df9fa": Error initializing source containers-storage:ubi-minimal-working-container: error extracting layer "a3d6d9ce03bb5c9df0bc5100cdedaaace6aa2b35f507310ebd816ef6f1f2c238": no such device or address