-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
Description
Product
Amazon Linux 2
What is your question?
Hello,
I'm trying to understand why amazonlinux:2 is failing when I use colima.
For instance this one fails:
$ docker run -i --rm -u 0:0 -v $(pwd)/src:/asset-input:delegated -v $(pwd)/result:/asset-output:delegated -w /asset-input amazonlinux:2 \
bash -c 'yum install -y -q util-linux; findmnt /asset-input; cp -au . /asset-output'
Failed to get D-Bus connection: Operation not permitted
TARGET SOURCE FSTYPE OPTIONS
/asset-input mount0[/temp/test/src] virtiofs rw,relatime
/usr/bin/cp: preserving permissions for '/asset-output/.': No data available
$ echo $?
1
While this one works as expected:
$ docker run -i --rm -u 0:0 -v $(pwd)/src:/asset-input:delegated -v $(pwd)/result:/asset-output:delegated -w /asset-input amazonlinux:2023 \
bash -c 'yum install -y -q util-linux; findmnt /asset-input; cp -au . /asset-output'
Installed:
cracklib-2.9.6-27.amzn2023.0.2.x86_64
gzip-1.12-1.amzn2023.0.1.x86_64
libdb-5.3.28-49.amzn2023.0.2.x86_64
libeconf-0.4.0-1.amzn2023.0.3.x86_64
libfdisk-2.37.4-1.amzn2023.0.4.x86_64
libpwquality-1.4.4-6.amzn2023.0.2.x86_64
libsemanage-3.4-5.amzn2023.0.2.x86_64
libutempter-1.2.1-4.amzn2023.0.2.x86_64
pam-1.5.1-8.amzn2023.0.4.x86_64
shadow-utils-2:4.9-12.amzn2023.0.4.x86_64
systemd-libs-252.23-2.amzn2023.x86_64
util-linux-2.37.4-1.amzn2023.0.4.x86_64
util-linux-core-2.37.4-1.amzn2023.0.4.x86_64
TARGET SOURCE FSTYPE OPTIONS
/asset-input mount0[/Projects/cce/temp/test/src] virtiofs rw,relatime
$ echo $?
0
I have reported similar issue at abiosoft/colima#1115