buildah: /bin/bash: cannot execute binary file
Generated Image seems to be corrupt.
ctr=$(buildah from centos:7)
buildah config --workingdir /tmp $ctr
buildah config --entrypoint /bin/bash $ctr
buildah commit $ctr test1
podman run --rm -it test1
/bin/bash: /bin/bash: cannot execute binary file
A simple example like this works fine in docker:
FROM centos:7
ENTRYPOINT /bin/bash
WORKDIR /tmp
Output of rpm -q buildah
or apt list buildah
:
buildah-0.16-1.git82529cd.fc27.x86_64
Output of buildah version
:
Version: 0.16
Go Version: go1.9.4
Image Spec: 1.0.0
Runtime Spec: 1.0.0
Git Commit: 82529cd
Built: Wed Apr 4 11:22:14 2018
OS/Arch: linux/amd64
Output of cat /etc/*release
:
Fedora release 27 (Twenty Seven)
Output of uname -a
:
Linux jw-laptop 4.15.16-300.fc27.x86_64 #1 SMP Mon Apr 9 17:50:06 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Output of cat /etc/containers/storage.conf
:
# storage.conf is the configuration file for all tools
# that share the containers/storage libraries
# See man 5 containers-storage.conf for more information
# The "container storage" table contains all of the server options.
[storage]
# Default Storage Driver
driver = "overlay"
# Temporary storage location
runroot = "/var/run/containers/storage"
# Primary Read/Write location of container storage
graphroot = "/var/lib/containers/storage"
[storage.options]
# AdditionalImageStores is used to pass paths to additional Read/Only image stores
# Must be comma separated list.
additionalimagestores = [
]
# Size is used to set a maximum size of the container image. Only supported by
# certain container storage drivers.
size = ""
# OverrideKernelCheck tells the driver to ignore kernel checks based on kernel version
override_kernel_check = "true"
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (10 by maintainers)
I’ve created #600 to track the issue.