podman traceback with env var a=b=c
by Barry Scott
I ran a build that works with docker and hit a traceback with a simple fix.
I symlinked docker and docker-compose to podman and podman-compose.
There is env var that is of the form A=B=C which needs this patch to
allow podman-compose to work:
$ diff -u /usr/lib/python3.10/site-packages/podman_compose.py~
/usr/lib/python3.10/site-packages/podman_compose.py
--- /usr/lib/python3.10/site-packages/podman_compose.py~
2022-06-14 14:16:45.825406742 +0100
+++ /usr/lib/python3.10/site-packages/podman_compose.py 2022-06-14
14:16:45.825406742 +0100
@@ -1502,7 +1502,7 @@
if args.workdir: cnt["working_dir"] = args.workdir
env = dict(cnt.get('environment', {}))
if args.env:
- additional_env_vars = dict(map(lambda each: each.split('='),
args.env))
+ additional_env_vars = dict(map(lambda each: each.split('=', 1),
args.env))
env.update(additional_env_vars)
cnt['environment'] = env
if not args.service_ports:
With this fix the build worked as expected.
Let me know if you want this in a bugzilla.
Barry
2 years, 5 months
Re: Need help in creating a rootless container in podman
by Anton Peters
Now that is remarkable. The overlay subdir has a supposedly random unique number.
Me and my colleagues get exactly the same as a SHA256 hash for a duplicate blob when trying to push an image to quay.io :
Getting image source signatures
Error: trying to reuse blob sha256:476579af086aee78cb12d88b08fd6b61a80a3f055cae293ec2d15a37dbe7b3f9 at destination: Requesting bearer token: invalid status code from registry 400 (Bad Request)
This must be something deep in how container images are handled.
I wonder what data generates this specific hash; maybe an empty data set?
--
Anton Peters
2 years, 5 months
oscap-podman as non root
by Ed Haynes
In RHEL9 I installed oscap-podman script as part of the openscap-utils
package. I'd like to use this script to scan container images pulled by a
non-root user but when running says I have to run as root - any idea why
this is a hard dependency? If I do have to run script as root is there
any way to pass non root podman image ID to the script?
Thanks, Ed
--
Ed Haynes
Senior SOLUTIONS ARCHITECT
Red Hat <https://www.redhat.com/>
ehaynes(a)redhat.com *M: (978)-551-0057 *
TRIED. TESTED. TRUSTED.
2 years, 5 months
Podman Community Meeting - Tues, June 7, 2022, at 11:00 a.m. EDT (UTC-5)
by Tom Sweeney
Hi All,
The next Podman Community Meeting is happening this Tuesday, June 7,
2022, @ 11:00a.m. EDT(UTC-5). We'll be having a new demo on the new
Desktop, what is being planned for the next few releases, and more! In
fact, we've room for another topic or two, so if you have one that you'd
like to present or discuss, drop me a line.
Free to attend here: https://bluejeans.com/880216278/2568
t
2 years, 5 months