Closed rolintoucour closed 3 years ago
Did you do this rootless or rootful?
I did this rootless (with only what I wrote)
It works for me. potentially an issue with the version of fuse-overlayfs that you are using.
$ rpm -q fuse-overlayfs fuse-overlayfs-1.3.0-1.fc33.x86_64
I have the same version.
This time I have the issue in the other direction:
docker run -it --privileged quay.io/buildah/stable bash
container=$(buildah --ulimit nofile=8192 --name my-container --format docker --isolation rootless from phusion/baseimage:bionic-1.0.0-amd64)
buildah run $container bash
apt-get update
apt-get install mysql-server-5.7
doesn't work but the following does:
buildah run $container bash -c "apt-get install mysql-server-5.7"
I wonder if this has something to do with the environment being setup with bash in an interactive shell versus running it directly. @rolintoucour Do you have any idea what the post-installation process here is doing?
installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
@nalind @giuseppe Ideas?
docker run -it --privileged quay.io/buildah/stable bash
have you used buildah inside of a docker container also when you first reported the problem?
A friendly reminder that this issue had no activity for 30 days.
Since we received no input, I am going to close this issue.
Description
When I try to install mysql_server inside a container, the result is different when I do
buildah run $container --
vsbuildah run $container bash
then my commandSteps to reproduce the issue:
container=$(buildah from phusion/baseimage:bionic-1.0.0-amd64)
buildah run $container -- apt-get update -y
buildah run $container -- apt-get upgrade -y
buildah run $container -- apt-get install -y mysql-server
Describe the results you received:
It fails with error
buildah run $container bash -c "apt-get install -y mysql-server"
instead of step 4 fails also.Describe the results you expected:
If I replace step 4 with
buildah run $container bash
thenapt-get install -y mysql-server
it succeeds.Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:*Output of `cat /etc/release`:**
Output of
uname -a
:Output of
cat /etc/containers/storage.conf
: